473,666 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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!fieldna me1
FROM rstTemp
WHERE rstTemp!fieldna me2 = rstTemp2!fieldn ame1
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 5272
AFAIK you cannot.

"Kim Baker" <ki*******@undi esyahoo.com.au> wrote in message
news:0q******** *************** *********@4ax.c om...
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!fieldna me1
FROM rstTemp
WHERE rstTemp!fieldna me2 = rstTemp2!fieldn ame1
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*******@undi esyahoo.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!fieldna me1
FROM rstTemp
WHERE rstTemp!fieldna me2 = rstTemp2!fieldn ame1
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*******@undi esyahoo.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!fieldna me1
FROM rstTemp
WHERE rstTemp!fieldna me2 = rstTemp2!fieldn ame1
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
1960
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 to Setup. Could anyone (much thanks) shed some light on my tired eyes? See below... Gary code sample:
4
3086
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 the recordset to loop thru the recordset, update values from the recordset and then update the database by passing parmeters to another stored procedure. I would like to use the recordset object but can it be used to pass a parameter to a stored...
19
9313
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 recognise datasets and requires a recordset. Can the datatypes be converted? At the Classic ASP end or .NET end? Can SOAP toolkit provide the conversion, can any toolkit provide a conversion? ...
0
2655
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 recordset is established and set during On Open. Next I want to populate a recordset from that list box so I can filter it on a single field using the value of a combo box for the filter string. I have a second combo box that i woul like to use...
6
6539
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 works fine, but passing the resulting recordset back to the sub's caller is not working out.
36
4460
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 dataview with a count = 0. Can someone explain why and how I might work around this problem? Here is the code for my function: Public Shared Function GetViewFromRS(ByVal pRS As ADODB.Recordset) _ As DataView
0
11284
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 specific moment in time - then gone the next. Few of us realize, however, that they can be saved to disk and later retrieved to will. The technical jargon for this is called 'Persisting a Recordset' and I'll show you how it can be done. ADO has this...
0
8992
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 Recordset? Does the Recordset support Bookmarks? Can we use the Find and/or Seek Methods with this Recordset? Does the Recordset support the use of Indexes? Will the Absoluteposition property be able to be used on this Recordset? etc....
6
5165
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 have created an ADODB.Recordset in the reports OPEN event, built the necessary records inside of it, and then bound the report to this newly created recordset. Here's the rub:
2
5509
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 results page. - Recordset Paging works if no parameters are used in the recordset sql code (ie. simple sql code): SELECT * FROM db_name WHERE (db_field1 LIKE ‘%text1%’ OR db_field2 LIKE ‘%text2%’)
0
8448
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8783
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.