RAYLWARD102
Well-known Member
- Joined
- May 27, 2010
- Messages
- 529
Experimenting with queries to my worksheet. So far, I can successfully get meaningful results back, but wonder how I can get those results to include the row they were found in??
My query Looks something like "SELECT [test1], [test2] FROM [Sheet1$]"
Want query to get row some how in results "SELECT ROW() as MyRow, [test1], [test2] FROM [Sheet1$]"
Obviously ROW() in my query doesn't work. I dont really want to add a row() formula to a cell in a column either; just thought there should be a way to return the row as a value in my adodb recordset. Any idea's?
My query Looks something like "SELECT [test1], [test2] FROM [Sheet1$]"
Want query to get row some how in results "SELECT ROW() as MyRow, [test1], [test2] FROM [Sheet1$]"
Obviously ROW() in my query doesn't work. I dont really want to add a row() formula to a cell in a column either; just thought there should be a way to return the row as a value in my adodb recordset. Any idea's?