L
lhtan123
I don't understand why there is an error message whenever I run this line of
code:
strWhere = Left$(strWhere, lngLen)
** strWhere is a string variable that stores the SQL statement for the where
condition of search criteria.
** lngLen is the no. of characters in the strWhere.
There is no problem with this when I run a similar code for a different
application.
I've checked each SQL statements that append to form the entire string for
strWhere. There is no syntax error.
code:
strWhere = Left$(strWhere, lngLen)
** strWhere is a string variable that stores the SQL statement for the where
condition of search criteria.
** lngLen is the no. of characters in the strWhere.
There is no problem with this when I run a similar code for a different
application.
I've checked each SQL statements that append to form the entire string for
strWhere. There is no syntax error.