- Local time
- Today, 07:43
- Joined
- Sep 12, 2006
- Messages
- 16,072
try this instead
strReportName = "Nodata1"
DoCmd.openreport strreportname
strReportName = "Nodata1"
DoCmd.openreport strreportname
SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Type)=-32764));
Okay this is a bit beyond my understanding??
Would this go in the control source fieldof a combo box?
Is MSysObects.Name a reference to where the reports are located in the Access database?
What does MSysObjects.Type refer to? and what is -32764?
That means you put it in the wrong place. You put it in the row source TYPE property which is expecting eitherI placed the exact formula as you indicated and got the following message when I opened the form:
SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Type)=-32764)); may not be a valid setting for the row source type property, or there was a compile error in the functiion. ?????
Bob,
I did that and did not get the error message, but there is nothing in the list when I open the form??