Can anyone see why the following line
Set Rst = Dbs.OpenRecordset("SELECT TOP 5 tblInvestigation.InvestigationID, tblInvestigation.Agent, tblInvestigation.MailType FROM tblInvestigation WHERE ((tblInvestigation.MailType)= 10);")
would return the error code 13 "Type Mismatch"?
I copied this SQL statement into a query and it works as I would expect pulling back the top 5 records.
Cheers
Set Rst = Dbs.OpenRecordset("SELECT TOP 5 tblInvestigation.InvestigationID, tblInvestigation.Agent, tblInvestigation.MailType FROM tblInvestigation WHERE ((tblInvestigation.MailType)= 10);")
would return the error code 13 "Type Mismatch"?
I copied this SQL statement into a query and it works as I would expect pulling back the top 5 records.
Cheers