Problem calling a function
Posted on 2004-09-21
OK, I am having a problem calling a Function in one of my subroutines:
Private Sub ExportResults_Click()
Dim qdQD As QueryDef
DoCmd.DeleteObject acQuery, "qryExport_results"
Set qdQD = CurrentDb.CreateQueryDef("qryExport_results", Sql)
ExportResults CAN'T CALL THIS
When I attempt to export the document, I receive an error indicating "Invalid use of property." I am not sure what the problem is. It worked fine in Access 2000, but we just got Access 2003 and it no longer works.