I've been doing this for hours and can't figure out what is going on.
I'm trying to do a simple record lookup with a combo-box. The combo-box selects the "Plant_ID" to lookup. I created a form (with textboxes displaying information off of a record with various information fields (Plant_ID/plant name/length/type/etc.) of that specific Plant record). This should happen when I select the plant from the drop-down box (cboPlant_ID_lookup).
Plant_List is my master table where all my data is stored in.
Here's my code for the combo-box (which should be all that's needed):
Code: Select all
Private Sub cboPlant_ID_lookup_AfterUpdate()
Me.RecordSource = "SELECT * FROM Plant_List ORDER BY [" & me.cboPlantlookup & "];"
End Sub
All the other textboxes in the form have their Control Source property to each corresponding Table field (length/type/etc.)
The wierd thing is - it correctly lists all my Plant_IDs in the combo-box drop-down list, but when I select that specific Plant_ID, all my other textboxes that suppose to display that specific plant information doesn't show anything...
This is Access 2003 btw, and I'm pulling my hairs on this...