|
-
Sep 12th, 2000, 04:19 PM
#1
Thread Starter
Junior Member
SQL in Access '97 (new question)
Ok, the following line will work as a SQL filter:
intBoxTotalMis = DSum("[mis]", "Used", "[BoxCode] = " & strQuote & strBoxCode & strQuote
However, the following line will not:
intBoxTotalMis = DSum("[mis]", "Used", "[BoxCode] = " & strQuote & strBoxCode & strQuote And "[LineCode] = " & strQuote & strFilterLine & strQuote)
When I try to run the program, it gets to this line and gives me a Run-time error '13' message stating "Type mismatch". Can anyone tell me the proper syntax to make it work?
Thanks,
ern
-
Sep 12th, 2000, 04:27 PM
#2
Frenzied Member
perhaps this will be better:
intBoxTotalMis = DSum("[mis]", "Used", "[Boxcode] = " & strQuote & strBoxCode & strQuote & "And [Linecode] = " & strQuote & strFilterLine & strQuote)
-
Sep 12th, 2000, 04:34 PM
#3
Thread Starter
Junior Member
J,
Perhaps is right. That was the ticket. Thanks!!
ern
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|