Hello,
I am very new to Microsoft Access and need some help using VB editor to customize forms. I entered code for an event that creates an auto fill-in form that completes the form according to what is selected in a combo box. But when I go to select a record in the combo box, none of the other fields on the form update. Also, the empty fields still act as if no changes were made to the event (goes down a list of records as I press Tab).
My event looks like this:
Option Compare Database
Option Explicit
Private Sub LastName_AfterUpdate()
Me.FirstName = DLookup("FirstName", "Table1", "ID=" & ID)
Me.Address = DLookup("Address", "Table1", "ID=" & ID)
Me.City = DLookup("City", "Table1", "ID=" & ID)
End Sub
Which is suppose to fill out text boxes named FirstName, Address, and City depending on the LastName selected in a combo box.
Thanks in advance for the help!