Sort limit.................255 characters in or more fields
N° of AND's & WHERE's in Having Clause........40
N° of characters in SQL statement.............64,000
...that's all I know, in regardes to your question.
I am not asking you to decode this, however, I get a run time error 3067 Query Input must contain one table or query. I am wondering if this is because strSQL is too long and it is being truncated?
However, it is not 64,000 characters either, would you know why I am getting an error?
I Don't believe the bang operator "!", is an invalid SQL character? ...Replace with "."
Secondly, your spacing (or lack of), is syntatically incorrect.
you need to asdd space to beginning of every line...eg
strSQL = strSQL & " [dbo_skul].[skul_no]) ON [InputFile2].[Item Code]=[dbo_skul].[item_no]) ON [IB_ManuCode]."
strSQL = strSQL & " [Man Code] = [InputFile2].[Man Code]"
strSQL = strSQL & " WHERE ((([dbo_skul].[loc_no]) <> 'BUN') And (([InputFile2].[Cost Change%]) > 0.014999)"
add a space to beginning of every line strSQL = strSQL & " [dbo...
cmmrfrds,
Variant, is the the default data type in VBA.
It's very legal to declare a variable without specifying the
data type, as above.
The result, always a variant (very taxing, if not necessary).
SymbionA, was "my' advice correct, or was it something else?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.