Originally Posted by
kagoodwin13
The text box "auto-fill" is a verification that the user has entered the correct information, and will flag when there is not a match
Originally Posted by
kagoodwin13
Or am I going about this the wrong way?
Taking your post at face value, you're actually going about it backwards! Comboboxes are used to facilitate the entering of correct/proper data, not to verify that data already entered is correct! What you would normally do is have the Combobox display the suppliers names, locations, and supplier numbers. Once a selection was made, you'd populate Textboxes on the Form with whichever values you need to save in the underlying Table, using a method like this:
Set up your Combobox using the Wizard and include the Fields you need, from Left-to-Right.
If in the Combobox they appear as
Field1 | Field2 | Field3
the code would be
Code:
Private Sub YourComboBox_AfterUpdate()
Me.txtField1 = Me.YourComboBox.Column(0)
Me.txtField2 = Me.YourComboBox.Column(1)
Me.txtField3= Me.YourComboBox.Column(2)
End Sub
Notice that the column index is Zero-based.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007