General information
Category:
Coding, syntax & commands
I found the part the causes problem: if I use a variable instead of a value in the where cause it won't work. For example:
CLIENT = 'test'
TEMP = "Select clClientID from CLIENTTYPE where clClientID = CLIENT"
?SQLEXEC(gnquoteConn,TEMP,"Qt_num")
It will return -1.
TEMP = "Select clClientID from CLIENTTYPE where clClientID = 'test'"
?SQLEXEC(gnquoteConn,TEMP,"Qt_num")
it will work.
any idea. thanks
sherry
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only