|
-
Oct 14th, 2011, 06:44 AM
#1
Thread Starter
Lively Member
[RESOLVED] How To Use Excel File/Range as Recordset and Run SQL on it
I need to know how to set an excel range as a recordset so I can write some sql queries, then transfer my query results to another excel file for reporting. I know how to do step 2, just need to know how to setup the excel file/range as an ODBC source I guess.
-
Oct 14th, 2011, 07:07 AM
#2
Re: How To Use Excel File/Range as Recordset and Run SQL on it
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Oct 14th, 2011, 07:11 AM
#3
Thread Starter
Lively Member
Re: How To Use Excel File/Range as Recordset and Run SQL on it
Awesome, thanks for the quick reply, exactly what I need to make my life easier!! I knew it could be done. Now I won't need to import the worksheet into Access anymore.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|