davidfaith101
New Member
- Joined
- Sep 1, 2006
- Messages
- 2
Hi,
I'm using one form (lookup) to call another (customer).
I set the properties on the command button object on the lookup form to open the customer form with the contents of a text field (phone number) in the lookup form matching the primary key of the customer form.
If the record exists in the customer form it opens with the record populated.
which is great! But...
If the record does not exist I get a blank customer form. Does anyone know of a way that I can automatically populate the primary key field on the called form from a calling form so that I dont have to type in the lookup text (the phone number) in the customer form when it is a new record? In other words if there is no customer in the database with a particualar phone number I would like the customer form to be pre-populated with the phone number already typed in the form. Is this possible?
Thanks,
David
I'm using one form (lookup) to call another (customer).
I set the properties on the command button object on the lookup form to open the customer form with the contents of a text field (phone number) in the lookup form matching the primary key of the customer form.
If the record exists in the customer form it opens with the record populated.
which is great! But...
If the record does not exist I get a blank customer form. Does anyone know of a way that I can automatically populate the primary key field on the called form from a calling form so that I dont have to type in the lookup text (the phone number) in the customer form when it is a new record? In other words if there is no customer in the database with a particualar phone number I would like the customer form to be pre-populated with the phone number already typed in the form. Is this possible?
Thanks,
David