T
Teri
I'm not sure if the problem I am currently having has to do with the
relationship or not. I have a subform which includes a field for a seriel
number. The subform draws on a query which in turn draws from three
different tables (Orders, Order Details and SerielNumber). The relationship
from Orders to Order Details is one-to-many with many on the Order Details
table; the relationship from Order Details to SerielNumber is one to many
with the many on the Order Details table. (The SQL version of the query is
as follows:
SELECT Orders.CustomerID, Orders.EmployeeID, Orders.OrderDate,
Orders.PurchaseOrderNumber, Orders.ShipDate, Orders.ShippingMethodID,
Orders.SalesTaxRate, [Order Details].OrderID, [Order Details].ProductID,
[Order Details].Quantity, [Order Details].UnitPrice, [Order Details].Price,
[Order Details].Discount, SerielNumber.*
FROM SerielNumber INNER JOIN (Orders INNER JOIN [Order Details] ON
Orders.OrderID = [Order Details].OrderID) ON SerielNumber.SerielNumberID =
[Order Details].SerielNumberID;
When I put a seriel number into the seriel number field of the subform I get
an error message saying the following: "You cannot add or change a record
because a related record is requred in table 'SerielNumber'." I need to be
able to input a seriel number which is not a unique number in any way (it may
be repeated several times in conjunction with several different customers for
a variety of reasons). If I turn off the referential integrity I am able to
input the seriel number and it will appear in the Order Details table in the
SerielNumberID field, but it does not appear in my Seriel Number table.
Is this the way it is supposed to be? Or did I screw up somewhere?
Thanks,
Teri.
relationship or not. I have a subform which includes a field for a seriel
number. The subform draws on a query which in turn draws from three
different tables (Orders, Order Details and SerielNumber). The relationship
from Orders to Order Details is one-to-many with many on the Order Details
table; the relationship from Order Details to SerielNumber is one to many
with the many on the Order Details table. (The SQL version of the query is
as follows:
SELECT Orders.CustomerID, Orders.EmployeeID, Orders.OrderDate,
Orders.PurchaseOrderNumber, Orders.ShipDate, Orders.ShippingMethodID,
Orders.SalesTaxRate, [Order Details].OrderID, [Order Details].ProductID,
[Order Details].Quantity, [Order Details].UnitPrice, [Order Details].Price,
[Order Details].Discount, SerielNumber.*
FROM SerielNumber INNER JOIN (Orders INNER JOIN [Order Details] ON
Orders.OrderID = [Order Details].OrderID) ON SerielNumber.SerielNumberID =
[Order Details].SerielNumberID;
When I put a seriel number into the seriel number field of the subform I get
an error message saying the following: "You cannot add or change a record
because a related record is requred in table 'SerielNumber'." I need to be
able to input a seriel number which is not a unique number in any way (it may
be repeated several times in conjunction with several different customers for
a variety of reasons). If I turn off the referential integrity I am able to
input the seriel number and it will appear in the Order Details table in the
SerielNumberID field, but it does not appear in my Seriel Number table.
Is this the way it is supposed to be? Or did I screw up somewhere?
Thanks,
Teri.