If you need multiple users using it you need to add some sort of USERID to the table too. An alternative would be to use the table as your source and then set the filter value to make it the subset you are seeking.
Private Sub Choose_Synonym_Click() On Error Go To Err_Choose_Synonym_Click Do Cmd.
Run SQL "UPDATE tbl Catalog" & _ " SET tbl Catalog.
This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. In the following code "tbl Catalog" is the table to be updated.
"Me." is a form opened from frm Entry Form as a pop-up to choose the parent record.
Close Exit_Choose_Synonym_Click: Exit Sub Err_Choose_Synonym_Click: Msg Box Err.
PKey] as a bound textbox in the pop-up form and it works. Database, sql As String, r Count As Integer Set dbs = Current Db sql = "UPDATE contact SET name=" & txtname. Then click on the update button that has the following code: Private Sub Command11_Click() Dim dbs As DAO. The code then stops executing: If the user has selected a contact to delete then the code defines a SQL statement that includes the ID of the contact (stored in the recid label of the form): 'update listbox con Info. Caption = "" End If End If End Sub If the user did not select a record then they get a message saying "Please select a contact to delete". I’ve modified the contact view form a little so that it looks something like this: As you can see I’ve only added two buttons to the form. Because we are using a list box to view the records contained in the table, we have to update it in real-time when deleting a record.