General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Variable doesnot work in query
This command works fine and return 8 records
SELECT Request.iid, Request.dtoday, Request.dtois, Request.creqfrom,;
Request.creqdeptt, Request.creqdesc, Request.dneeded, Request.csubmtedby,;
Request.ccomplby, Request.dcompltd, Request.cstatus;
FROM isapp!request;
where Request.cstatus IN ('Testing', 'UnAssigned', 'In Progress')
where as this should return the same value but returns blank recordset
vp_cStatusField = "' Testing ', "+" ' UnAssigned ', "+" ' In Progress '"
?vp_cStatusField
SELECT Request.iid, Request.dtoday, Request.dtois, Request.creqfrom,;
Request.creqdeptt, Request.creqdesc, Request.dneeded, Request.csubmtedby,;
Request.ccomplby, Request.dcompltd, Request.cstatus;
FROM isapp!request;
where Request.cstatus IN (?vp_cStatusField)
Thanks
Bharat
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