T
tsuby
Hello everybody,
I am stuck with an append query and I need some advice from expert.
I have a database with three tables.
Table_Customers (PK Autonumber)
TableB_Orders (PK Autonumber)
TableC_Products (PK Autonumber)
The three tables are linked through a common field (CustomerNumber).
Now, my problem: sometimes I need to duplicate an order from the
Orders_Form. The duplicated order is not always for the same customer,
so I need to
1) change the CustomerNumber accordingly (I setup an Espr1 field on the
query), but I
2) need to make sure that the CustomerNumber is already in
Table_Customers as well and, if it is not so, I
3) need to get an error message saying that the records could not be
copied.
1+3 I know how to do. Point 2 is beyond my knowledge.
I've been stuck there for days now and it's driving me crazy!
Any suggestions?
Thanks
Erika
I am stuck with an append query and I need some advice from expert.
I have a database with three tables.
Table_Customers (PK Autonumber)
TableB_Orders (PK Autonumber)
TableC_Products (PK Autonumber)
The three tables are linked through a common field (CustomerNumber).
Now, my problem: sometimes I need to duplicate an order from the
Orders_Form. The duplicated order is not always for the same customer,
so I need to
1) change the CustomerNumber accordingly (I setup an Espr1 field on the
query), but I
2) need to make sure that the CustomerNumber is already in
Table_Customers as well and, if it is not so, I
3) need to get an error message saying that the records could not be
copied.
1+3 I know how to do. Point 2 is beyond my knowledge.
I've been stuck there for days now and it's driving me crazy!
Any suggestions?
Thanks
Erika