D
Dave
I am trying to query MS-Project to pull Tasks with a specific
TaskOutlineCode3 value. So I set up a connection string as:
conData.ConnectionString =
"Provider=Microsoft.Project.OLEDB.10.0;PROJECT NAME=" & File_Name
I am able to open the connection and I have written several queries that
work as I expect. So far works great.
However, whenever I try to query the Tasks table with a WHERE condition for
a field that is of type Text, it doesn't return any values. For Example
strSelect = "SELECT * FROM Tasks WHERE Taskname Like '*'
rstResources.Open strSelect, conData
Do While Not rstResources.EOF
Debug.Print rstResources![TaskID]
Loop
This returns 0 records, even though I have plenty of records with Tasknames.
What am I doing wrong? Is this a bug? I am running MS-Project 2002
Any help would be greatly appreciated....
Dave
TaskOutlineCode3 value. So I set up a connection string as:
conData.ConnectionString =
"Provider=Microsoft.Project.OLEDB.10.0;PROJECT NAME=" & File_Name
I am able to open the connection and I have written several queries that
work as I expect. So far works great.
However, whenever I try to query the Tasks table with a WHERE condition for
a field that is of type Text, it doesn't return any values. For Example
strSelect = "SELECT * FROM Tasks WHERE Taskname Like '*'
rstResources.Open strSelect, conData
Do While Not rstResources.EOF
Debug.Print rstResources![TaskID]
Loop
This returns 0 records, even though I have plenty of records with Tasknames.
What am I doing wrong? Is this a bug? I am running MS-Project 2002
Any help would be greatly appreciated....
Dave