Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sub with with problems ...

Status
Not open for further replies.

Albano

Instructor
Dec 11, 2000
221
PT
Hello,
I have a sub thas accepts as parameters the name of a query to execute, but the problem is that sametimes he run the query and other times don't, someane have a clue of what can be the problem.

Theirs teh sub:

Sub escalaVerão(MyQuery)
stDocName = "" & MyQuery & ""
DoCmd.OpenQuery stDocName, acNormal, acEdit
...
End sub

Thanks.
Albano
 
This should work:

=====
Sub escalaVerão(strQuery as String)
DoCmd.OpenQuery strQuery, acNormal, acEdit
...
End sub Jim Lunde
compugeeks@hotmail.com
Custom Application Development
 
Thank's Jim Lunde, i'm going to tray.

Albano
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top