I am getting error "The report name 'rptStore' you entered is mispelled or refer to a report that isnt open or doesnt exist." So please tell me should I make the report through wizard or design view.How should be the report.Why its giving error?
CurrentDb.QueryDefs("Query2").SQL = "SELECT Snumber from Store_t where " & GetCriteria()
Reports!rptStore.Recordset = "Query2"[b/]
DoCmd.OpenReport Reports!rptStore , acViewNormal, , , acDialog
Any suggestion is most appreciated.
CurrentDb.QueryDefs("Query2").SQL = "SELECT Snumber from Store_t where " & GetCriteria()
Reports!rptStore.Recordset = "Query2"[b/]
DoCmd.OpenReport Reports!rptStore , acViewNormal, , , acDialog
Any suggestion is most appreciated.