Hi
Im using ADO and the Exchange oledb-driver to access exchange public folders, but I have a little problem. I want the program to use a variabel to store the full path to the server and then use it in the SELECT statement, as follows;
Does anyone have a idea how to make this work??
Regards
Tomas
Im using ADO and the Exchange oledb-driver to access exchange public folders, but I have a little problem. I want the program to use a variabel to store the full path to the server and then use it in the SELECT statement, as follows;
Code:
dim srvPath as string = "[URL unfurl="true"]http://server/public"[/URL]
sel = "SELECT ""DAV:contentclass"",""DAV:displayname"" FROM scope('shallow traversal of "srvPath"') WHERE ""DAV:contentclass"" = 'urn:content-classes:folder' and ""DAV:displayname"" = 'Folder'"
Does anyone have a idea how to make this work??
Regards
Tomas