D
dbonline
With VBA editor I am trying to build a select statement that extracts data
from the Task table in MS Project. The select by itself works fine, however
when I try to
filter the data with a Where clause I get an error.
Statement:
rsSelect = "Select TaskUniqueId, TaskName, TaskSummary From Tasks Where
TaskSummary = " & chr(34) & "False" & chr(34) & "Order by TaskUniqueId"
When I run the statement I get the error:
Invalid column name "False"
Why does it think this string value "False" is a column? What is wrong with
this syntax? I just want to select rows that are not summary tasks.
from the Task table in MS Project. The select by itself works fine, however
when I try to
filter the data with a Where clause I get an error.
Statement:
rsSelect = "Select TaskUniqueId, TaskName, TaskSummary From Tasks Where
TaskSummary = " & chr(34) & "False" & chr(34) & "Order by TaskUniqueId"
When I run the statement I get the error:
Invalid column name "False"
Why does it think this string value "False" is a column? What is wrong with
this syntax? I just want to select rows that are not summary tasks.