|
-
Apr 18th, 2011, 04:45 AM
#1
Thread Starter
New Member
[VBA] Import only some data from Access to Excel
Hi! I have an Access DB and I want to import a table (with 150.000 rows) into Excel.
This is an example of my table:
Col1 Col2
A value1
A value2
B value3
C value4
A value5
B value6
I need to select all "A" values, make some operations, and then put the result in a Excel cell. Then select all "B" values, make some operations, and then put the result in another cell, and so on...
The problem is that I can't import all the table into Excel because it's too large...is there a method to process first all "A" values, then all "B" values to do my operations? The records in Column1 are many (A,B,C,...Z) and unknown.
Thanks,
PAOLO
-
Apr 18th, 2011, 06:42 AM
#2
Re: [VBA] Import only some data from Access to Excel
you can create a recordset from the table where col1 = 'A'
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
Tags for this Thread
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
|