I've written a function which uses a DAO Recordset. The following statement sets the recordset:
Set rs = db.OpenRecordse t("qryLast24Mon ths")
My dilemma is that when my query has a criteria set as follows: [forms]![frmModels].[ModelNum], the function will not work due to a syntax error. However, if I set the criteria to an actual modelnum such as 7300, the function works just fine.
Any help or ideas are appreciated.
Set rs = db.OpenRecordse t("qryLast24Mon ths")
My dilemma is that when my query has a criteria set as follows: [forms]![frmModels].[ModelNum], the function will not work due to a syntax error. However, if I set the criteria to an actual modelnum such as 7300, the function works just fine.
Any help or ideas are appreciated.
Comment