eTom
Registered User.
- Local time
- Today, 03:39
- Joined
- Oct 15, 2009
- Messages
- 79
Here's what I'm sure is a stupid question:
I can't seem to pull data from a table for a form. I have a combobox that when a user selects an item, I want it to populate three or four text boxes based on data from a table that the user selects.
They select an item called "Product123" from the combobox. This combobox is populated from a table called tblProducts, set up to use two columns, ItemNumber and ItemDescription.
I've set up an OnChange event that triggers when the user picks an item. To test it out, I tried:
This verified that the code and event are working properly. Now what I want to do, ideally, is have TextBox1 populated with the value for that specific record from the table, from a field called ProductSpecs1. How do I reference the table (tblProducts) in my line of code?
When pulling data from another form or subform, I've always used Forms!Formname.Field.Value and this has worked fine... but I just can't figure out how to pull the value from a field from a record from a table. ><
Thanks in advance,
eTom
I can't seem to pull data from a table for a form. I have a combobox that when a user selects an item, I want it to populate three or four text boxes based on data from a table that the user selects.
They select an item called "Product123" from the combobox. This combobox is populated from a table called tblProducts, set up to use two columns, ItemNumber and ItemDescription.
I've set up an OnChange event that triggers when the user picks an item. To test it out, I tried:
Code:
Me.TextBox1.Value = "11111"
This verified that the code and event are working properly. Now what I want to do, ideally, is have TextBox1 populated with the value for that specific record from the table, from a field called ProductSpecs1. How do I reference the table (tblProducts) in my line of code?
When pulling data from another form or subform, I've always used Forms!Formname.Field.Value and this has worked fine... but I just can't figure out how to pull the value from a field from a record from a table. ><
Thanks in advance,
eTom