G
Guest
I have a form and a subform. I modeled them after the Orders/ Order Details
relationship in the Northwind database. I can't seem to enter new data into
the subform. I assume this is because the order number is not being passed
to the subform. Both forms are based on queries.
The record source for the subform is
SELECT tblPartNumbers.[Part Number], tblPartNumbers.Size,
tblPartNumbers.Thick, tblPartNumbers.CompanyName, tblPartNumbers.[Rev:],
tblPartNumbers.Alloy, tblPartNumbers.Coating, tblPartNumbers.Form,
tblPartNumbers.[Each Wt], tblPartNumbers.[Tool #], tblOrderDetails.[Order
Number], tblOrderDetails.Tool, tblOrderDetails.Coupons, tblOrderDetails.Qty,
tblOrderDetails.[Customer Lot], tblOrderDetails.ID
FROM tblPartNumbers LEFT JOIN tblOrderDetails ON tblPartNumbers.[Part
Number] = tblOrderDetails.[Part Number];
The records source for the main form is
SELECT [Order Entry5].[Written By], [Order Entry5].[Received By], [Order
Entry5].[Order Number], [Order Entry5].[Master Process], [Order
Entry5].ContactID, [Order Entry5].Received, [Order Entry5].Due, [Order
Entry5].[ID Number], [Order Entry5].[Purchase Order], [Order Entry5].[Line
Item], [Order Entry5].[Job Number], [Order Entry5].[Lot Number], [Order
Entry5].[Serial Numbers], [Order Entry5].[Shipping Method], [Order
Entry5].[Ship to Address], [Order Entry5].[Model Number], [Order
Entry5].[Material Spec:], [Order Entry5].SpecID, [Order Entry5].[Additional
Specifications], [Order Entry5].[ID Process Key], [Order
Entry5].SpecialRacking, [Order Entry5].SpecialPackaging, [Order
Entry5].[Inspection Instructions], [Order Entry5].[Start Temper], [Order
Entry5].[Finish Temper], [Order Entry5].Shipped, [Order Entry5].Certed,
[Order Entry5].[To Lab], [Order Entry5].[In Age], [Order Entry5].[In Str],
[Order Entry5].Bond, [Order Entry5].Promised, [Order Entry5].[By:], [Order
Entry5].[Notes From Gordon], [Order Entry5].Invoiced, [Order Entry5].Notes,
[Order Entry5].[Additional Specifications #2], [Order Entry5].Specification,
[Order Entry5].[Backlog Note], [Order Entry5].[Tensile Test], [Order
Entry5].FurnaceCharts, [Order Entry5].[Re-Stencil], [Order Entry5].[Remove
Stencil]
FROM [Order Entry5];
The link between them is based on the field [Order Entry]. It seems to work
fine for existing records, but when I try to add a new record, I get the
message that the field cannot be updated. Any clues?
-
Why are you asking me? I dont know what Im doing!
Jaybird
relationship in the Northwind database. I can't seem to enter new data into
the subform. I assume this is because the order number is not being passed
to the subform. Both forms are based on queries.
The record source for the subform is
SELECT tblPartNumbers.[Part Number], tblPartNumbers.Size,
tblPartNumbers.Thick, tblPartNumbers.CompanyName, tblPartNumbers.[Rev:],
tblPartNumbers.Alloy, tblPartNumbers.Coating, tblPartNumbers.Form,
tblPartNumbers.[Each Wt], tblPartNumbers.[Tool #], tblOrderDetails.[Order
Number], tblOrderDetails.Tool, tblOrderDetails.Coupons, tblOrderDetails.Qty,
tblOrderDetails.[Customer Lot], tblOrderDetails.ID
FROM tblPartNumbers LEFT JOIN tblOrderDetails ON tblPartNumbers.[Part
Number] = tblOrderDetails.[Part Number];
The records source for the main form is
SELECT [Order Entry5].[Written By], [Order Entry5].[Received By], [Order
Entry5].[Order Number], [Order Entry5].[Master Process], [Order
Entry5].ContactID, [Order Entry5].Received, [Order Entry5].Due, [Order
Entry5].[ID Number], [Order Entry5].[Purchase Order], [Order Entry5].[Line
Item], [Order Entry5].[Job Number], [Order Entry5].[Lot Number], [Order
Entry5].[Serial Numbers], [Order Entry5].[Shipping Method], [Order
Entry5].[Ship to Address], [Order Entry5].[Model Number], [Order
Entry5].[Material Spec:], [Order Entry5].SpecID, [Order Entry5].[Additional
Specifications], [Order Entry5].[ID Process Key], [Order
Entry5].SpecialRacking, [Order Entry5].SpecialPackaging, [Order
Entry5].[Inspection Instructions], [Order Entry5].[Start Temper], [Order
Entry5].[Finish Temper], [Order Entry5].Shipped, [Order Entry5].Certed,
[Order Entry5].[To Lab], [Order Entry5].[In Age], [Order Entry5].[In Str],
[Order Entry5].Bond, [Order Entry5].Promised, [Order Entry5].[By:], [Order
Entry5].[Notes From Gordon], [Order Entry5].Invoiced, [Order Entry5].Notes,
[Order Entry5].[Additional Specifications #2], [Order Entry5].Specification,
[Order Entry5].[Backlog Note], [Order Entry5].[Tensile Test], [Order
Entry5].FurnaceCharts, [Order Entry5].[Re-Stencil], [Order Entry5].[Remove
Stencil]
FROM [Order Entry5];
The link between them is based on the field [Order Entry]. It seems to work
fine for existing records, but when I try to add a new record, I get the
message that the field cannot be updated. Any clues?
-
Why are you asking me? I dont know what Im doing!
Jaybird