473,385 Members | 1,472 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,385 software developers and data experts.

Recordset from recordset

Problem creating a recordset object from another recordset object.
1. create first object. rstTemp with 10 fields - no problem
2. create second object rstTemp2 with one field - no problem
3. Attempt to create a third object with the following suedo code
fails.

SELECT rstTemp!fieldname1
FROM rstTemp
WHERE rstTemp!fieldname2 = rstTemp2!fieldname1
More manipulation after creating this object.....
In execution I get an error stating rstTemp ( in the FROM line ) is
not recognised as a table or query. And of course it is not.

I realise that there may be better ways of doing this but I would like
to know if I can use a recordset object this way.
Cheers
Remove undies to reply
Nov 13 '05 #1
3 5259
AFAIK you cannot.

"Kim Baker" <ki*******@undiesyahoo.com.au> wrote in message
news:0q********************************@4ax.com...
Problem creating a recordset object from another recordset object.
1. create first object. rstTemp with 10 fields - no problem
2. create second object rstTemp2 with one field - no problem
3. Attempt to create a third object with the following suedo code
fails.

SELECT rstTemp!fieldname1
FROM rstTemp
WHERE rstTemp!fieldname2 = rstTemp2!fieldname1
More manipulation after creating this object.....
In execution I get an error stating rstTemp ( in the FROM line ) is
not recognised as a table or query. And of course it is not.

I realise that there may be better ways of doing this but I would like
to know if I can use a recordset object this way.
Cheers
Remove undies to reply

Nov 13 '05 #2
Kim Baker <ki*******@undiesyahoo.com.au> wrote in message news:<0q********************************@4ax.com>. ..
Problem creating a recordset object from another recordset object.
1. create first object. rstTemp with 10 fields - no problem
2. create second object rstTemp2 with one field - no problem
3. Attempt to create a third object with the following suedo code
fails.

SELECT rstTemp!fieldname1
FROM rstTemp
WHERE rstTemp!fieldname2 = rstTemp2!fieldname1
More manipulation after creating this object.....
In execution I get an error stating rstTemp ( in the FROM line ) is
not recognised as a table or query. And of course it is not.

I realise that there may be better ways of doing this but I would like
to know if I can use a recordset object this way.
Cheers
Remove undies to reply

You can filter the number of records, though...
http://www.mvps.org/access/modules/mdl0010.htm

Hey, Steve J, can you do this kind of thing with an ADO fabricated
recordset or somesuch?
Nov 13 '05 #3
Many thanks for your replies. I've used recordset filtering to get
around the problem but it would have been interesting if I could have
used the recordset object directly.
On Thu, 23 Sep 2004 19:21:06 +1000, Kim Baker
<ki*******@undiesyahoo.com.au> wrote:
Problem creating a recordset object from another recordset object.
1. create first object. rstTemp with 10 fields - no problem
2. create second object rstTemp2 with one field - no problem
3. Attempt to create a third object with the following suedo code
fails.

SELECT rstTemp!fieldname1
FROM rstTemp
WHERE rstTemp!fieldname2 = rstTemp2!fieldname1
More manipulation after creating this object.....
In execution I get an error stating rstTemp ( in the FROM line ) is
not recognised as a table or query. And of course it is not.

I realise that there may be better ways of doing this but I would like
to know if I can use a recordset object this way.
Cheers
Remove undies to reply


Remove undies to reply
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gary artim | last post by:
Hi All, I have a problem using DBIx::RecordSet. I get correct results but continue to get these messages on stderr. I looked at Compat.pm and it seems to be pointing out a problem with my call...
4
by: Tom | last post by:
I want to open a recordset object on an .asp page. When I open the recordset I would like to use a stored procedure that expects a parameter to be passed for the stored procedure. I will then use...
19
by: Adam Short | last post by:
I am trying to write a routine that will connect a .NET server with a classic ASP server. I know the following code doesn't work! The data is being returned as a dataset, however ASP does not...
0
by: CFW | last post by:
I thought this was going to be easy but I'm missing something . . . I need to open an ADODB recordset using the recordset source for a list box on my for. When my form opens, the list box ADODB...
6
by: lenny | last post by:
Hi, I've been trying to use a Sub or Function in VBA to connect to a database, make a query and return the recordset that results from the query. The connection to the database and the query...
36
by: kjvt | last post by:
Based on a prior posting, I've written a function to convert a recordset to a dataview. The first call to the function for a given recordset works perfectly, but the second call always returns a...
0
ADezii
by: ADezii | last post by:
Most Access Users realize that Recordsets, being virtual representations of a Query, Table, or SQL Statement, exist only in our PC's memory. They, and the data they contain, literally exist at one...
0
ADezii
by: ADezii | last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be: Can I add New Records to the...
6
by: Oko | last post by:
I'm currently developing an MS Access Data Project (.adp) in MS Access 2002. One of the reports within the DB uses data that is Dynamic and cannot be stored on the SQL Server. To resolve this, I...
2
by: wallconor | last post by:
Hi, I am having a problem using Dreamweaver CS3 standard recordset paging behavior. It doesn’t seem to work when I pass parameter values from a FORM on my search page, to the recordset on my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.