Good afternoon all,
I am getting the following error message when using my combo box to auto fill some fields on my Access 2007 form, "Compile Error: method or data member not found. The cbobox has an embedded query behind it that pulls (correctly from 2 different tables) all the information I am looking for. The first 4 fields are pulled and filled correctly, when I added the fifth field (from a third table) I get the error message. below is the code that I am using:
Not sure why "Me.Notes_tblVendor = Me.cboVendor_Number.Column(3)" works identifying the third column a second time in the query, but it works.
What Can I try? And is there a better way to go about this?
Thank you,
I am getting the following error message when using my combo box to auto fill some fields on my Access 2007 form, "Compile Error: method or data member not found. The cbobox has an embedded query behind it that pulls (correctly from 2 different tables) all the information I am looking for. The first 4 fields are pulled and filled correctly, when I added the fifth field (from a third table) I get the error message. below is the code that I am using:
Code:
Private Sub cboVendor_Number_Change() Me.Vendor_Name = Me.cboVendor_Number.Column(1)
Me.Assigned_To = Me.cboVendor_Number.Column(2)
Me.Notes_tblVendor = Me.cboVendor_Number.Column(3)
Me.Notes_tblVendor = Me.cboVendor_Number.Column(3)
Me.AVAILABLE_SOURCES_tblEFT = Me.cboVendor_Number.Column(7)
End Sub
Not sure why "Me.Notes_tblVendor = Me.cboVendor_Number.Column(3)" works identifying the third column a second time in the query, but it works.
What Can I try? And is there a better way to go about this?
Thank you,