Hello all,
I've a form "FormCurtain" which contains a subform listing the different size of the curtains.
When I try to open the Subform with the following code (from a search form) it doesn't work. It opens the corresponding form but doesn't move to the right record.
Dim strDocID As String
Dim strLinkCriteria As String
strDocID = Me!ByNbr_Nbr
strLinkCriteria = "ID = '" + CStr(strDocID) + "'"
DoCmd.OpenForm "FormCurtain", , , strLinkCriteria
If I try with a more simple form, i.e. without a subform I don't have any problems...
Any idea? Thanks in advance!!
nectar
I've a form "FormCurtain" which contains a subform listing the different size of the curtains.
When I try to open the Subform with the following code (from a search form) it doesn't work. It opens the corresponding form but doesn't move to the right record.
Dim strDocID As String
Dim strLinkCriteria As String
strDocID = Me!ByNbr_Nbr
strLinkCriteria = "ID = '" + CStr(strDocID) + "'"
DoCmd.OpenForm "FormCurtain", , , strLinkCriteria
If I try with a more simple form, i.e. without a subform I don't have any problems...
Any idea? Thanks in advance!!
nectar
Last edited: