|
-
Feb 3rd, 2004, 04:04 AM
#1
Thread Starter
Addicted Member
Record per worksheet Access to Excel
Hi All,
I am moving information from an Access query to an Excel worksheet. What I need is for each record from the query to be placed on a new worksheet within the workbook.
Any help appreciated.
dagoose
-
Feb 3rd, 2004, 09:45 AM
#2
Frenzied Member
This might be dumb, I don't use Excel.
Wouldn't code along these lines work? This is pseudo code.
VB Code:
For i = 0 to Access recordset upperbound - 1
dim new excel worksheet
put in recordset info
Next
Anyway, make a loop that creates a new excel worksheet and put the info in. Maybe a While type loop would be better.
Just as a place to start. Not sure what the limit is to the number of Excel worksheets, you may want to add a check for that.
-
Feb 4th, 2004, 04:18 AM
#3
Thread Starter
Addicted Member
many thanks'
will give it a go. I haven't done that much with excel (vb6 normally) so I was unsure if I was approaching the problem in the correct way.
Cheers
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
|