G
GACarGuy
I'm missing something really simple but I don't see. When I run the code
below I am getting a data mismatch error on the last execute statements.
Function WorkListBuild()
'Route Variables
Dim b As Integer
b = 15
'This line Works
Set rs = cn.Execute("SELECT COUNT(lacct) From tblWorkLists WHERE
DaysPastDue = 15 ")
'This line does not,
Set rs = cn.Execute("SELECT COUNT(lacct) From tblWorkLists WHERE
DaysPastDue = b ")
End Function
Thanks for the help
below I am getting a data mismatch error on the last execute statements.
Function WorkListBuild()
'Route Variables
Dim b As Integer
b = 15
'This line Works
Set rs = cn.Execute("SELECT COUNT(lacct) From tblWorkLists WHERE
DaysPastDue = 15 ")
'This line does not,
Set rs = cn.Execute("SELECT COUNT(lacct) From tblWorkLists WHERE
DaysPastDue = b ")
End Function
Thanks for the help