Hello,
I am trying to build an SQL in Visual Basic and need some help with
quotation mark(s).
I have two text fields on a form where the user enters a sales group
range to view records between those sales groups. For example:
Salesgroup 1 through Salesgroup 10. I have written the following piece
of code to get the records between me.salesgroup1 and me.salesgroup2 but
it gives me a compile error and says expected end of statement.
strWhere = strWhere & "([SGRP] = " BETWEEN """" & Me.SalesGroup1 & "'
AND '" Me.SalesGroup2 "') And "
Does anyone see what it is that is wrong with the above statement?
Thanks in advance for any help.
*** Sent via Developersdex http://www.developersdex.com ***