Login | |
|
 |
RE: About the recordset - 9/7/2005 8:57:04 PM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
Because the rsadSet.Fields keeps being re-read, the oField.Value keeps changing...so it should be only oField.Value IMO Don't you need to put the rsadSet.MoveNext in the For Loop aswell?
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: About the recordset - 9/8/2005 2:08:47 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
You don't want to store each of the 2nd field or 3rd in oSheet.Cells(rw, 2).Value, do you? So you would have to make seperate For loops then...IMO (as how i see it now)
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: About the recordset - 9/8/2005 2:10:48 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
|
The Excel.Range object has a CopyFromRecordset method that may address your problem.
|
|
| |
|
|
|
|
|