J
jbphoenix
--------------------------------------------------------------------------------
I have a form with a command btn on it that runs an append query. I am
appending data from tble2 to Customer_Order. Customer_Order is a linked table
from our MRP application. I'm only trying to append 5 fields right now. They
are the fields that are required and won't accept a null in my linked MRP
table. However I am getting a Key Violation error. Below is table structure
for each table. The OrderID is a combination of 2 fields from a form - would
that cause any problems? Any ideas?
The OrderID field in tble2 is a combination of an autonumber (RMAID) and an
RMAType (A,C,or R). The new OrderID for example - A4008 is not in the
Customer_Order tble. I searched the Customer_Order tble and wasn't able to
find a match. So that is why I am puzzled as to why I still have a key
violation.
tble2
OrderID - text, required
CustomerID - text, required
EntityID - text, required
BuyRate - number, required
SellRate - number, required
Customer_Order
ID - text, required, Primary Key
Customer_ID - text, required
Entity_ID - text, required
Buy_Rate - number, required
Sell_Rate - number, required
I have a form with a command btn on it that runs an append query. I am
appending data from tble2 to Customer_Order. Customer_Order is a linked table
from our MRP application. I'm only trying to append 5 fields right now. They
are the fields that are required and won't accept a null in my linked MRP
table. However I am getting a Key Violation error. Below is table structure
for each table. The OrderID is a combination of 2 fields from a form - would
that cause any problems? Any ideas?
The OrderID field in tble2 is a combination of an autonumber (RMAID) and an
RMAType (A,C,or R). The new OrderID for example - A4008 is not in the
Customer_Order tble. I searched the Customer_Order tble and wasn't able to
find a match. So that is why I am puzzled as to why I still have a key
violation.
tble2
OrderID - text, required
CustomerID - text, required
EntityID - text, required
BuyRate - number, required
SellRate - number, required
Customer_Order
ID - text, required, Primary Key
Customer_ID - text, required
Entity_ID - text, required
Buy_Rate - number, required
Sell_Rate - number, required