B
bh
I'm trying to create a search form, which can be called by multiple forms.
I pass in the calling form name through the OpenArgs and create a
recordsetclone for searching accordingly. This works fine, if the calling
form is a main form as (Case "Courts") follows, however, if I pass through a
subform (Case "County"), I get an error stating "Object doesn't support this
property or method":
DIM rst as DAO.Recordset
Select Case Me.OpenArgs
Case "Courts"
SET rst = Forms!frmCourts.RecordsetClone
Case "County"
SET rst = Forms!frmCounty!frmCountySubform.RecordsetClone
End Select
If anyone has run into this in the past, please help. Thanks in advance for
your assistance.
bh
I pass in the calling form name through the OpenArgs and create a
recordsetclone for searching accordingly. This works fine, if the calling
form is a main form as (Case "Courts") follows, however, if I pass through a
subform (Case "County"), I get an error stating "Object doesn't support this
property or method":
DIM rst as DAO.Recordset
Select Case Me.OpenArgs
Case "Courts"
SET rst = Forms!frmCourts.RecordsetClone
Case "County"
SET rst = Forms!frmCounty!frmCountySubform.RecordsetClone
End Select
If anyone has run into this in the past, please help. Thanks in advance for
your assistance.
bh