I'm attempting to create a Purchase Order form. The way I have started to setup the form, I have a Combo Box that has a list of our most popular vendors. I would like to have the user be able to select the vendor from the list and based on their selection, have the vendor's address, phone no., contact name, etc. automatically fill in text boxes on the form. The information for the Combo Box is fed from a Table called VendorInfo. Currently there are only 3 vendors in the VendorInfo table. Unfortunately, it's not working 100% correctly. What's happening is this: When a vendor is selected from the Combo Box, the text boxes fill in as they should. If I close out of the form, and reopen it, the information shown in the first 4 columns for the vendor listed for ID 1 of the VendorInfo table gets replaced with the vendor information of the last vendor selected prior to closing the form. Below is the code tied to the Combo Box under the Properties, Event tab, After Update. I'm looking for some guidance on what is wrong and how I can fix it. I'm very new to creating MS Access forms and learned whatever I do know from internet searches. Appreciate anyone's assistance.
Private Sub Combo18_AfterUpdate()
Me.Text10 = Me.Combo18.Column(2)
Me.Text12 = Me.Combo18.Column(3)
Me.Text20 = Me.Combo18.Column(4)
End Sub