@Missionary2008
I'm not sure what your experience level is, but I sent the database so that you could see how clicking a record on one form would open a new form with details of the record you clicked on.
In frmList, there is a field "productcode". That field (control) has an private procedure related to the Onclick event.
-
Private Sub ProductCode_Click()
-
'
-
'When you click in the productCode field, this Sub
-
'will cause Form frmDetails to Open, and
-
'it will open displaying current entires for this Product code
-
'You can alter or enter new data in all fields except the product code field.
-
-
DoCmd.OpenForm "frmDetails", acNormal, , "Productcode = " & Forms!frmList.ProductCode
-
End Sub
-
This Sub does the following:
When you click on a record (the productcode in frmList), frmDetails is opened in Normal mode and the record it displays is the one that has its
ProductCode = to the Productcode you clicked on on form frmList.
To see this code, open frmList in design mode;
right click on the ProductCode field,
click Properties,
click Event,
Go to the OnClick event;
Click on the ellipses (.....) at the end of the line.
Good luck