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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Records on Input Form

Status
Not open for further replies.

forrest33

ISP
Sep 25, 2003
25
CA
I have an input form that contains a Company Name field. The source of this field is a lookup column in another table.
The input form receives info in regards to each Company Name. However, when I choose a certain company, I do not get the related info displayed on the form, although the backend table has stored the input.
Thanks.

 
is this form bound to the table or what is its record source?
Need more info. Are you using a combo box for the company name? Does it have an ID?

.....
I'd rather be surfing
 
the record source for Company Name is a combo box in another table, where it does have an ID.
 
okay, is your form bound to a table? What is the form's recordsource?

Are you looking to "pull" info from the company table into the current form controls. You will need to add code to the change, update, or lost focus event of the combo box.

What have you tired?

.....
I'd rather be surfing
 
the form is based on a Business Expansion table, where one of the column is Company Name, linked to Company Name in a Manufacurer table. The Company Name combo box has as a record source the Company Name in the Manuf.table. Is this correct? I was trying to build a macro around the on update event, but could not find a corresponding command.
Thanks.
 
that helps, but what are you trying to do? do you want to take info from the manufacturer table and fill into fields on the current form? If so, don't use macros. It would be better to use VBA code(I never use macros). You can then easily use the update event to query data from the manufacture table and fill in the forms you need.

IF you give me a detailed description of what you are trying to do, i can give you some examples.

.....
I'd rather be surfing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top