Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBLookupComboBox 1

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
Ok....Pardon my ignorance. Although the web is full of resources, I still cannot find a way to make that works.
I found out that it is better to use a dblookupcombo instead of a dbcombo. Indeed, the dblookupcombo pulls my data from the set listsource and listfield.
Now when i make a selection and it shows up in my box, where can i put the statement that will populate my other table?
I have a table called project. It has
ProjectID
ProjectName
ProcessID.

My combobox pulls data from a Process table that has:
ProcessID
ProcessName.

When a user select a processname from the combobox, i would like its processid to be populated in the project table.

Maybe i am doing it the wrong way. Maybe when i create the Project record, I should pull the processid from the combobox.

What should I do?
Thanks.
Pierrotsc
 
if the table using the the edit part of the combo is in edit or append mode then the item from the lookup is placed in the field for you. (no code required).

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top