M
Mishanya
1. I have a form with the field ClientName and want to open frmClientDetails
by doublclicking it. What code do I have to put in the DblClick Event of
ClientName, so that it will open the needed recordset (from ClientName in the
1st form to the ClientID-recordset in the frmClientDetails)?
DoCmd.OpenForm "frmClientDetails",,, "??? =" & Me.[ClientName]
P.S.: It would be easy to put the ClientID field in the 1st form and wrap
the DblClick event on it, but I don't want this Autonumber to be seen in the
form.
2. I have a switchbord where I chose ClientName from cboCLientName (based on
ClientID and CLientName fields from the tblClientDetails) and click on
Button wich opens frmCLientPreferences (based on tblCLientPreferences where
ClientID is foreign key). The form opens with the recordset of prechoosen
Client. The procedure of the Button contains:
stDocName = "frmCLientPreferences"
stLinkCriteria = "[ClientID]=" & Me![ClientID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
What should I add in order to have unbound ClientName field in the
frmCLientPreferences filled (the procedure only transfers the ClientID).
P.S.: I could build sub_frmCLientPreferences and put it under
main_frmClientName (based on the tblCLientDetails) wich would receive the
ClientID and show the ClientName, but there is only one Preferences-recordset
for each client, so maybe it can be avoided.
by doublclicking it. What code do I have to put in the DblClick Event of
ClientName, so that it will open the needed recordset (from ClientName in the
1st form to the ClientID-recordset in the frmClientDetails)?
DoCmd.OpenForm "frmClientDetails",,, "??? =" & Me.[ClientName]
P.S.: It would be easy to put the ClientID field in the 1st form and wrap
the DblClick event on it, but I don't want this Autonumber to be seen in the
form.
2. I have a switchbord where I chose ClientName from cboCLientName (based on
ClientID and CLientName fields from the tblClientDetails) and click on
Button wich opens frmCLientPreferences (based on tblCLientPreferences where
ClientID is foreign key). The form opens with the recordset of prechoosen
Client. The procedure of the Button contains:
stDocName = "frmCLientPreferences"
stLinkCriteria = "[ClientID]=" & Me![ClientID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
What should I add in order to have unbound ClientName field in the
frmCLientPreferences filled (the procedure only transfers the ClientID).
P.S.: I could build sub_frmCLientPreferences and put it under
main_frmClientName (based on the tblCLientDetails) wich would receive the
ClientID and show the ClientName, but there is only one Preferences-recordset
for each client, so maybe it can be avoided.