I have two forms
- frmVList with ID (from tblV - Table)
-frmVDetails (with ID as "tblV.ID) as tblV is the table name that contains the ID.
(That is because i made a query between some tables in the control source of [frmVDetails]
I want to click ID in [frmVList] to open [frmVDetails] where ID = tblV.ID
I wrote the code like the following but did not work:
what is the mistake
- frmVList with ID (from tblV - Table)
-frmVDetails (with ID as "tblV.ID) as tblV is the table name that contains the ID.
(That is because i made a query between some tables in the control source of [frmVDetails]
I want to click ID in [frmVList] to open [frmVDetails] where ID = tblV.ID
I wrote the code like the following but did not work:
Code:
Private Sub ID_Click()
DoCmd.OpenForm "frmVDetails", acNormal, , , acFormReadOnly, , "ID" & Me.ID
End Sub