mitchem1
Registered User.
- Local time
- Yesterday, 23:01
- Joined
- Feb 21, 2002
- Messages
- 153
I have a form with 7 unbound combo boxes. Also on the form is a command button called Find Project. The user can use any, all, or none of the combos to find a project. The more that are used, the more the search is narrowed. The command button has code behind it like this:
Dim stDocName As String
stDocName = "qryFindProject"
DoCmd.OpenQuery stDocName, acNormal, acEdit
That works great. The query runs exactly as it should. However, when I replace "qryFindProject" with "frmDisplayProject" (record source is qryFindProject), I receive the error:
Microsoft Access can't find the object 'frmDisplayProject'. The form does exist. Must be doing something very wrong. Any help would be greatly appreciated.
Dim stDocName As String
stDocName = "qryFindProject"
DoCmd.OpenQuery stDocName, acNormal, acEdit
That works great. The query runs exactly as it should. However, when I replace "qryFindProject" with "frmDisplayProject" (record source is qryFindProject), I receive the error:
Microsoft Access can't find the object 'frmDisplayProject'. The form does exist. Must be doing something very wrong. Any help would be greatly appreciated.