I have a combo box with a list of values coming from the Row source - a Select query. The list is
Installed
Retired
Good
Damaged
Refering to the status of equipment. I have an Equipment type table which stores a code like 1 for Installed and 2 for Retired and so on. I have created a Add new Form where a user is trying to insert data into a table called Equipment and using the drop down they pick the status. The problem is I want to insert the Equipment ID from the Equipment type table and not the text. I am terribly rusty with VB right now and cannot think. I am working in VB Access 2000.I have taken off the control source to the drop down field and I was thinking of using a hidden field to populate the code and tie this to the Equipment table.
Thanks
K
Installed
Retired
Good
Damaged
Refering to the status of equipment. I have an Equipment type table which stores a code like 1 for Installed and 2 for Retired and so on. I have created a Add new Form where a user is trying to insert data into a table called Equipment and using the drop down they pick the status. The problem is I want to insert the Equipment ID from the Equipment type table and not the text. I am terribly rusty with VB right now and cannot think. I am working in VB Access 2000.I have taken off the control source to the drop down field and I was thinking of using a hidden field to populate the code and tie this to the Equipment table.
Thanks
K