B
Brandon Johnson
Im having problems with tieing the recordset to the subform that i have
presented on my form. I get a runtime 91 error when it tries to set the
subform to promoteSub recordset. The code is as follows. does anyone
know how i could fix that.
Dim promoteSub As DAO.Recordset
Set promoteSub = CurrentDb.OpenRecordset("SELECT * FROM
qryPromotedItems WHERE PromoteGroup = " & Chr$(34) & cboPromote &
Chr$(34) & " ORDER BY PromoteGroup ASC;", dbOpenDynaset)
Me.frmPromote.Form.Recordset = promoteSub
promoteSub.Close
presented on my form. I get a runtime 91 error when it tries to set the
subform to promoteSub recordset. The code is as follows. does anyone
know how i could fix that.
Dim promoteSub As DAO.Recordset
Set promoteSub = CurrentDb.OpenRecordset("SELECT * FROM
qryPromotedItems WHERE PromoteGroup = " & Chr$(34) & cboPromote &
Chr$(34) & " ORDER BY PromoteGroup ASC;", dbOpenDynaset)
Me.frmPromote.Form.Recordset = promoteSub
promoteSub.Close