Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I'm Getting an error "Garbage after statement" while using WHERE [Last Modified Date] >=$(vLastExecTime) and [Last Modified Date] < $(vExecTime).
when i remove " WHERE [Last Modified Date] >=$(vLastExecTime) and [Last Modified Date] < $(vExecTime).0" from my script its working fine.
Please help me if any one can.
Thanks in Advance...
Try putting single quotes around variables like:
WHERE [Last Modified Date] >= '$(vLastExecTime)' and [Last Modified Date] < '$(vExecTime)' ;
If the date formats match, this should work.
Try putting single quotes around variables like:
WHERE [Last Modified Date] >= '$(vLastExecTime)' and [Last Modified Date] < '$(vExecTime)' ;
If the date formats match, this should work.
Probably because your variables are texts - a time stamp and a date. If so, you can either write your where clause with single quotes:
WHERE [Last Modified Date] >='$(vLastExecTime)' and [Last Modified Date] < '$(vExecTime)'
or you can define the variables numerically:
Let vLastExecTime = Num(...)
and write the where clause with numeric expansions:
WHERE [Last Modified Date] >=$(#vLastExecTime) and [Last Modified Date] < $(#vExecTime)
HIC
Your variables vLastExecTime and vExecTime may not be initialized correctly. Look in the Document Log to see what values are being substituted in the WHERE clause.
-Rob
Thanks...
It is working fine..
Thanks lot.
Thanks...
Both Solutions are working fine
Thanks lot