If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > passing an ADO recordset to an array

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-04, 16:39
Viggy Viggy is offline
Registered User
 
Join Date: Jan 2004
Posts: 18
passing an ADO recordset to an array

Is there a way to pass an ADO recordset -created using SQL to query Access- into an an array?

Thanks,
Viggy
Reply With Quote
  #2 (permalink)  
Old 02-04-04, 20:17
Xl-Dennis Xl-Dennis is offline
Registered User
 
Join Date: Dec 2003
Location: Östersund Sweden
Posts: 60
Viggy,

It might be possible using CopyFromRecordset however before challenging it I would like You to provide more info and code for it.

Kind regards,
Dennis
__________________
Kind regards,
Dennis
Reply With Quote
  #3 (permalink)  
Old 02-05-04, 10:00
Viggy Viggy is offline
Registered User
 
Join Date: Jan 2004
Posts: 18
comparing rows in an array

The problem has changed, I figured out how I am going to pass this into an array, but now I'm wondering about the most effecient ways of comparing rows of the array.

I have no code yet... The programming is still in the planning phase... Quite honestly, I don't even want to use the array, and I have more effecient ideas of how to do this, but my boss wants it, so I have no choice.
Anyways, the code involves querying a database, displaying the records in Excel, and then using UPDATE to make any changes the user might make to the information. There is a 'save' button the user will if he/she wants to the update to happen. I was arguing for a check box by each row, so that the program knows which rows to update. My boss does not want the check box, but prefers if we save the recordset to an array when its called, and then compare each row of the record, to see if there is a need to create an SQL command to update the database. Thus, we will have a 2-dimensional array, and need to check row by row to see if there are any changes to make.

My first question is: Are there simple commands that will compare the rows of the array without using a loop?

Second: I assume there answer to the first question is no, and that I will need to use a loop to cycle through the rows... BUT, is there a way to automatically check if the each row in one array is them same as each row in the second array without using a loop to cycle through each member? For instance, is there somethign along the lines of:
IsEqual(arrayname1(r,),arrayname2(r,))?

Thanks,
Viggy
Reply With Quote
  #4 (permalink)  
Old 12-31-04, 21:09
deathz28 deathz28 is offline
Registered User
 
Join Date: Dec 2004
Posts: 1
ron ambrosio

are you the viggy from lodi

if so email me at deathz28@hotmail.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On