I have the following code:
When run, it is asking me for data for the variable, strTeamLeader. Of course, when I open the newly created query in design view, it shows strTeamLeader in the criteria under [Team Leader].
Does anything catch anyone's eye right off the bat, where I'm just making a el-stupido error? This is just a small piece of the total code running with this module, I can provide any extra info/code as needed.
My system is this: Windows 2000, Office XP, so 2002 versions of all Office software.
Stephen![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV
Code:
Dim myquery as QueryDefine
Set myquery = CurrentDb.CreateQueryDef([strQueryName], _
"SELECT A.DNUM, A.[Desk#], A.Name, A.Balance, A.[Due Date], " & _
"A.[Due Amount], A.[Attorney Information] " & _
"FROM tblStatusAudit A " & _
"WHERE (((A.[Team Leader])=strTeamLeader) " & _
"AND ((A.Status)=strVarItm));")
When run, it is asking me for data for the variable, strTeamLeader. Of course, when I open the newly created query in design view, it shows strTeamLeader in the criteria under [Team Leader].
Does anything catch anyone's eye right off the bat, where I'm just making a el-stupido error? This is just a small piece of the total code running with this module, I can provide any extra info/code as needed.
My system is this: Windows 2000, Office XP, so 2002 versions of all Office software.
Stephen
![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV