Marshall,
I thought I mention the for setup anyway here is what I have...
I have a MainForm which has Tab Control On this I have a form called
frmreferb and within this I have a datasheet called
frmReferbDetailsSubformNew.
This is the record source of the frmReferbDetailsSubformNew Datasheet..
SELECT tblReferbDetails.ReferbDetailID, tblReferbDetails.ReferbID,
tblReferbDetails.Supplier, tblReferbDetails.ProductID,
tblReferbDetails.Quantity, tblReferbDetails.PricePerUnit
FROM tblReferbDetails;
I have the following controls on the datasheet...
Supplier Combo Box
Control Source = Supplier
Row Source = SELECT tblSuppliers.SupplierID, tblSuppliers.SupplierName
FROM tblSuppliers;
Bound Column 1
Column Count 2
Size 0;
After Update Event code...
Private Sub Supplier_AfterUpdate()
Me.ProductID = Null
Me.ProductID.Requery
End Sub
_______________________________________________________________________
PorductID Combo Box
Control Source = ProductID
Row Source = SELECT tblProducts.ProductID, tblProducts.ProductName,
tblProducts.ProductDescription, tblProducts.SerialNumber,
tblProducts.UnitPrice, tblProducts.SupplierID
FROM tblProducts
WHERE
(((tblProducts.SupplierID)=[Forms]![frmRoomMain]![frmReferb].[Form]![frmReferbDetailsSubformNew].[Form]![Supplier]));
Bound Column = 1
Coulmn Count = 6
Column Widths = 3cm;5cm;0cm;0cm;0cm;0cm;0cm
No Code
________________________________________________________________
Text Box Called CBOProductDesription
Control Source =ProductID.Column(2)
__________________________________________________________
Text Box called SerialNumber
Control Source =ProductID.Column(1)
__________________________________________________________
Text Box Called Quantity
Control Source= Quantity
_________________________________________________
Text Box Called PricePerUnit
Control Source = PricePerUnit
This is all I have on the datasheet..
Kind Regards & Fingers Crossed
