automatic field population

L

Lauren B

I have a form (Form A) where the user enters customer information that
exists on one table (Table A). Each customer is assigned a customer ID. I
have command button that opens another form (Form B)that contains some
additional information that exists on a different table (Table B)--I have
this for set as a popup.

Is there any way for me to code the event procedure so that when the users
enters the supplemental information in Form B, the customer ID entered on
Form A (essentially Table A) will populate the customer ID field (set as a
foreign key on Table B) on Table B?

Thank you in advance for any assistance.

LB
 
G

Guest

Assuming Form B is opened by Form A, use the OpenArgs option to pass the
customerid when you open Form B. You will also have to build logic in Form B
that will retrieve the additional information if it exists, or create a new
record if it does not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top