M
MentalDrow
Hi All,
I'm sorry if this ends up being a post similar to someone else's that has
already been answered. Here is what I am trying to do.
I'm creating a database that has in it fields for first name and last name.
To prevent duplicate entries, I want the used to be able to click a New
Driver button and input the last name (variable = LastName) and first name
(FirstName) and have the macro search the DriverLast and DriverFirst fields.
If there is a match, I want to notify the user and ask them if they wish to
open the appropriate record so new deliveries can be annotated. Is there a
way to open an exsisting record in the appropriate form and have the subform
open a new record? If not I can probably place a command button on the
primary form so the subform opens a new (blank) record.
If there is no match I can already get it to open a form to input the new
driver's info.
Additional information: The delivery form (DeliveryInfoFRM) is a subform of
the driver form (DriverInfoFRM). If it would make assisting me easier, I can
easily break them away from each other. The delivery table and driver table
are separate tables from each other. If any additional information is
necessary, please let me know.
Thanks for the assist.
Chaz
I'm sorry if this ends up being a post similar to someone else's that has
already been answered. Here is what I am trying to do.
I'm creating a database that has in it fields for first name and last name.
To prevent duplicate entries, I want the used to be able to click a New
Driver button and input the last name (variable = LastName) and first name
(FirstName) and have the macro search the DriverLast and DriverFirst fields.
If there is a match, I want to notify the user and ask them if they wish to
open the appropriate record so new deliveries can be annotated. Is there a
way to open an exsisting record in the appropriate form and have the subform
open a new record? If not I can probably place a command button on the
primary form so the subform opens a new (blank) record.
If there is no match I can already get it to open a form to input the new
driver's info.
Additional information: The delivery form (DeliveryInfoFRM) is a subform of
the driver form (DriverInfoFRM). If it would make assisting me easier, I can
easily break them away from each other. The delivery table and driver table
are separate tables from each other. If any additional information is
necessary, please let me know.
Thanks for the assist.
Chaz