473,387 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Compare two records in the same recordset

topher23
234 Expert 100+
So I'm working on this new project that involves comparing the machine settings for a product against the machine settings for the next product run to see which machine settings need to be changed, then allotting an amount of time for the changeover based on which machine settings are different.

What I'd like to know is: is there a way to compare these two records in the same recordset against each other directly, without generating a second recordset or using array variables? Due to the complexity involved in the data, the routine already has 3 recordsets and several variables, including at least one array. If it's at all possible, I'd like to avoid creating more memory-hogs unnecessarily.
Apr 5 '10 #1

✓ answered by ADezii

You can 'Clone' the Recordset which is not the same, and does not carry the same overhead, as creating an additional Recordset.

4 4303
ADezii
8,834 Expert 8TB
You can 'Clone' the Recordset which is not the same, and does not carry the same overhead, as creating an additional Recordset.
Apr 5 '10 #2
topher23
234 Expert 100+
Thanks Adezii! Since I've only ever needed to clone a form's recordset, I didn't even think about cloning a code-created recordset. Good tip!
Apr 5 '10 #3
ADezii
8,834 Expert 8TB
Let us know how it works out.
Apr 6 '10 #4
topher23
234 Expert 100+
Works great, no problems. I like the solution.
Apr 6 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Felix McAllister | last post by:
Hi, When using win32com.client, how do you test for a 'nothing' com object as you can in VB? I have an example here when using ADO to loop over multiple recordsets returned from a query. I get the...
10
by: shank | last post by:
I have a recordset that contains multiple records of product a user is purchasing. For clarity, I converted the recordset fields to variables. I need to take that entire recordset and insert it...
1
by: Simon Gare | last post by:
Hi I need to compare a dynamic field in an asp page to a field in another table, if there is no match then i would like to chane the row colour ( see code below). The problem Im having is...
4
by: Maur | last post by:
Hi all, I have 2 tables say t_OLD and t_NEW. The new has corrections for audit purposes. They are identical in all respects (i.e. new is a copy of old and then changes are made to t_new) ...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
0
by: dfs9 | last post by:
In the article "Delete Duplicate Records From Access Tables" By Danny Lesandrini writes the following: This final suggestion is the most flexible and accurate. Given any table, it generates a...
4
by: dfs9 | last post by:
In the article "Delete Duplicate Records From Access Tables" By Danny Lesandrini writes the following: This final suggestion is the most flexible and accurate. Given any table, it generates a...
0
by: Chris1234 | last post by:
I have a jsp where I need to display records created before July 1, but I am to suppress a credit link that normally would appear for such records. I need to prohibit a credit link from apprearing...
4
by: jollycottage | last post by:
Please can anyone help? I have several recordsets containing the same number of records and each record having 2 fields. One recordset being the primary the others secondary. I what to compare...
47
atksamy
by: atksamy | last post by:
Hi, I am trying to compare two recordsets. the first rs1 has random records. The second rs2 has the standard values for those records. Initially I am looking to take each of the records and see if...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.