Hi,
It seems that the driver cannot use the bind variable that you have tried to use. That is a limitation of the driver unfortunately.
You have sent me some further comments for which I have placed the answers below:
Quote:>>
I am evaluating the SQL*XL product and would really like to purchase and use it at our company. We need to query Active Directory information and place the results into Excel.
>>
Yes, SQL*XL can do this.
Quote:>>
I am able to get this to work using both the SQL*XL query button on the SQL*XL toolbar as well as the 'sqlqueryvalue' function in Excel cells. The sqlqueryvalue function is limited in that it cannot query multi-value object attributes but I am able to get it to work with cells as variables.
>>
That last point is not true. Your problem is that you have created the SQLQueryValue funtion as an ordinary cell function and not as an array function. As a cell function only one value displays. When you cast it into an array function multiple columns and rows can be shown.
Please read the following topics:
Using Array Formulas in Excel
http://www.oraxcel.com/cgi-bin/yabb2/YaBB.pl?num=1150621743 Quote:>>
The SQL*XL query button works with those attributes and works well with lists of data, but I cannot get it to work with an Excel field as a variable. I have a post in the forum for this under 'derek4u'.
>>
You can use the concatenate function or use the string concatenation operator &.
Please see:
SQL*XL: Database query cell formula.
http://www.oraxcel.com/projects/sqlxl/demos/database_query_cell_formula.html Quote:>>
Ok, I have figured out how to make part of my LDAP query a variable by using the 'SQL Source' as 'A Worksheet' option when clicking the SQL query button. The actual cell that's referenced uses a =concatenate() function to build the final select...LDAP://... statement.
>>
Yes, that is the technique.
Quote:>>
The problem is, how do I refresh this reference? If I change any of the values that create the cell with the SQLqueryvalue statement, it does not update. I've looked through your forums and even tried the macro option, but Excel macros don't seem to apply to the SQL*XL menus.
>>
Does it update when you press F9, the Excel shortcut to calculate the sheet?
You may want to set the workbook options to calculate immediately.