ms-access-2010

Create Multiple Records in One Form. Only One Field Changes per Record

半腔热情 提交于 2019-12-12 18:38:37
问题 Where I work we receive electronic meters from customers and try to solve the errors they have. We will receive 4-8 meters at a time that all have the same problem, same specs, same everything, the only thing different between each meter is the Serial Number. I want to be able to enter every serial number, and the common specs all in one form to create multiple records. Here's a pic of what I have for the form. I was able to create records for just one serial number at a time, but I would

How to send a message from MS Access using twilio?

萝らか妹 提交于 2019-12-12 18:26:33
问题 I have done a lot of research but I have found nothing. Has anyways already done this? Any examples? I want to send a message using a button in a form so it should call a vba code and use some information in the same form to send the message. Any ideas would be great!! I'm using Access 2010 回答1: Twilio evangelist here. The short answer is you need to POST to the Twilio REST API using VBA. Here is a bit of sample code that shows how to do this using XMLHTTP: Public Function GET_MESGS() Dim

Automatically backing up an Access database [closed]

喜欢而已 提交于 2019-12-12 16:24:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . We have a Microsoft Access database saved on the network drive. What I am looking for is to be able to automatically backup these files on a daily or weekly basis. What is the best way to go about this? Can somebody please explain the procedure? 回答1: (borrowing heavily from one of my earlier answers here...) re:

Executing SQL updates on linked Excel table in Access

自闭症网瘾萝莉.ら 提交于 2019-12-12 16:13:59
问题 Using Access 2010, I imported several Excel tables into Access, and built forms that allowed the user to update and add information to the tables. The forms work by dynamically generating SQL alter and update statements in VBA and then running DoCmd.RunSQL . However, I wanted the changes to the tables to be reflected in the original Excel tables so I deleted the tables in Access, and instead linked the Excel tables to Access. All of my select queries continue to work so I am able to access

Configuring an Access report to use a SQL Server stored procedure as its record source

穿精又带淫゛_ 提交于 2019-12-12 14:19:56
问题 I'm trying to create a report in MS Access 2010 with results of MS SQL Server Stored Procedure. In my VBA code I try: Dim qdf As DAO.QueryDef Set qdf = CurrentDb.CreateQueryDef("") qdf.Connect = CurrentDb.TableDefs("[MyTable]").Connect qdf.SQL = "exec spMyProc @ID = " & "1" qdf.ReturnsRecords = True Set rs = qdf.OpenRecordset(dbOpenSnapshot) Set Me.Recordset = rs But it throws an error: Run-time error '32585' This feature is only availabe in an ADP. What I'm doing wrong or how to fix that?

Regex VBA in Access - finding text between two strings

橙三吉。 提交于 2019-12-12 14:16:08
问题 I am having a heck of a time with a RegEx question in Access VBA. My goal is to extract the server from a linked database connection string. Basically, the connection string looks like ODBC;DRIVER=SQL Server;SERVER=compName\sqlexpress;Trusted_Connection=Yes;APP=Microsoft Office 2010;DATABASE=databaseName I am able to get the first regex to work, but it is returning SERVER=compName\sqlexpress I would like this to only return compName\sqlexpress My understanding is the ?<= operator should allow

UPDATE query based on a saved SELECT query in Access?

雨燕双飞 提交于 2019-12-12 14:01:41
问题 Using a UPDATE query, is it possible to reference to a stored select query? I'd like to accomplish something like this: UPDATE ... WHERE ... IN [MY_STORED_PROCEDURE] 回答1: Perhaps something on these lines: UPDATE ... WHERE ID IN (SELECT ID FROM MyStoredProc) Depending on your set up, a join may also be possible. You can add stored queries to the query design window, but you do not always end up with an updatable query, it usually depends on your indexes. 来源: https://stackoverflow.com/questions

Access VBA: Find item in combo box based on non-bound column

元气小坏坏 提交于 2019-12-12 10:54:28
问题 I have a two-column combo box on an Access form representing a key-to-code mapping. The first column of the combo box is the 'bound column' (ie, the column used when MyComboBox.Value is called). I need to dynamically set the Value of my combo box based on a value found in the second column. For eg, if my combo box source is: Value | Code =============== A1 | ABCD A2 | EFGH A3 | IJKL I can set the value of the combo box simply with ComboBox.Value = "A2" , but how would I do the same using the

VBA: How to select item from a ComboBox

旧街凉风 提交于 2019-12-12 10:38:33
问题 I have Access 2010 form which has a ComboBox cmbSubTopic which lists two columns ( SubTopicID and SubTopic ). The combo box is bound to a field containing SubTopicID . The SubTopicID column in the combo box is hidden, it only shows the SubTopic . When the user selects a SubTopic from the drop down the corresponding SubTopicID is stored in the table. I wrote some VBA code for the on load event of the form to look up the SubTopicID in the table and the corresponding SubTopic is selected in the

MS Access Front-end: Does each user need their own copy?

人走茶凉 提交于 2019-12-12 10:15:19
问题 In one of my Stack Overflow questions about MS Access front-ends, an SO community member suggests that each user should have their own copy of the .MDB or .ACCDB front-end file: Don't put the database on a network drive and share it with users. Give each user their own copy. Is this necessary? What are the problems associated with multiple users accessing the same file? The estimated number of users for my future front-end is currently 5, possibly growing to 10-20. 回答1: It is not necessary if