Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open form based on 1st form selection

Status
Not open for further replies.

jlnewbie

Technical User
Aug 9, 2000
69
I've seen several posting related to this question and on FAQ but have yet to solve my problem . I'm hoping someone will help me see solve it.
My 1st form works well and consist of combobox and subform. I select my combobox product and the subform is populated with related item. I want to open a second related details form based on selection of the subform by clicking on a subform record but keep getting that table is opened exclusively by another user and can't be control prgrammatically or the no record error. Here is the code that I have to open the second form

DoCmd.OpenForm "frmMSDSViewDetails", , , _
"lngProductID " = " & lngProductID & " '"


JLopez
lopez2059@bellsouth.net
 
Thanks to anyone trying to answer my question but I solved my issue by adding the following code to On double click

Dim stLinkCriteria As String
stLinkCriteria = "[lngProductID]=" & Me![lngProductID]
DoCmd.OpenForm "frmMSDSDetails", , , stLinkCriteria
End Sub


JLopez
lopez2059@bellsouth.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top