How can I assign a variable to the active record in a table with the double click event of a command button? I am somewhat knowledgeable of vba. I did a search but found nothing. Thanks.
Dim db as DAO.Database
Dim strSQL As String
Set db = CurrentDb
strSQL = "UPDATE YourTable SET FieldName = YourVariable WHERE you need to identify the record here
db.Execute strSQL
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.