D
Debbiedo
I have a form that I want to use as both a data entry and a data
update form. I want the form to open up as a new record. When the user
enters the Order ID number in the OrderID box and hits enter or exits
that box and goes to another box, I want a query to run that goes out
to the Orders table and queries whether that Order ID number exists in
the table. (OrderID is the primary key). If it does, I want the rest
of the forms to populate with the information in the form. If not, I
want the user to be able to enter the new data into the new record.
Some info that may be of help.
Table name = Orders
Primary key = OrdersID
Form Name = OrdersForm
Field that is doing search = OrdersID
Some of the field names to be populated if OrdersID entered already
exist:
ComapnyName
CompnayID
CompanyAddress
ComapanyCity
etc.
I posted something similar once before and got a response telling me
not to have the data entry and data modify form the same, but I really
want it that way. I do not see why having the form perform both tasks
would be such a problem.
Can anyone help me here? I am at a loss as to how to do this? I can't
get existing data to display in the form.
I am using Access 2003.
Thanks in advance for any and all help.
update form. I want the form to open up as a new record. When the user
enters the Order ID number in the OrderID box and hits enter or exits
that box and goes to another box, I want a query to run that goes out
to the Orders table and queries whether that Order ID number exists in
the table. (OrderID is the primary key). If it does, I want the rest
of the forms to populate with the information in the form. If not, I
want the user to be able to enter the new data into the new record.
Some info that may be of help.
Table name = Orders
Primary key = OrdersID
Form Name = OrdersForm
Field that is doing search = OrdersID
Some of the field names to be populated if OrdersID entered already
exist:
ComapnyName
CompnayID
CompanyAddress
ComapanyCity
etc.
I posted something similar once before and got a response telling me
not to have the data entry and data modify form the same, but I really
want it that way. I do not see why having the form perform both tasks
would be such a problem.
Can anyone help me here? I am at a loss as to how to do this? I can't
get existing data to display in the form.
I am using Access 2003.
Thanks in advance for any and all help.