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

recordsets from queries

Hi could someone pls tell me whether or not the following is true:

If I call OpenRecordset on a query that selects fields from a table
and then edit the recordset, am I actually editing the table itself?

eg I have code similar to the following in code I am analysing. Will
this edit the actual table t_instrument?

rsInst = openRecordset("select * from q_clsInstrument where sourceID =
" + CStr(sID))

rsInst.AddNew
rsInst![sourceID] = sID
rsInst.Update

and the query defn is:
q_clsInstrument:
SELECT t_instrument.sourceID, t_instrument.Name
FROM t_instrument;

Mar 28 '07 #1
2 1506
Yes: you are changing the field in the table.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"colmkav" <co******@yahoo.co.ukwrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
Hi could someone pls tell me whether or not the following is true:

If I call OpenRecordset on a query that selects fields from a table
and then edit the recordset, am I actually editing the table itself?

eg I have code similar to the following in code I am analysing. Will
this edit the actual table t_instrument?

rsInst = openRecordset("select * from q_clsInstrument where sourceID =
" + CStr(sID))

rsInst.AddNew
rsInst![sourceID] = sID
rsInst.Update

and the query defn is:
q_clsInstrument:
SELECT t_instrument.sourceID, t_instrument.Name
FROM t_instrument;
Mar 28 '07 #2
On 28 Mar, 15:21, "Allen Browne" <AllenBro...@SeeSig.Invalidwrote:
Yes: you are changing the field in the table.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"colmkav" <colmj...@yahoo.co.ukwrote in message

news:11**********************@n59g2000hsh.googlegr oups.com...
Hi could someone pls tell me whether or not the following is true:
If I call OpenRecordset on a query that selects fields from a table
and then edit the recordset, am I actually editing the table itself?
eg I have code similar to the following in code I am analysing. Will
this edit the actual table t_instrument?
rsInst = openRecordset("select * from q_clsInstrument where sourceID =
" + CStr(sID))
rsInst.AddNew
rsInst![sourceID] = sID
rsInst.Update
and the query defn is:
q_clsInstrument:
SELECT t_instrument.sourceID, t_instrument.Name
FROM t_instrument;- Hide quoted text -

- Show quoted text -
Thanks. that makes sense then. cheers

Mar 28 '07 #3

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

Similar topics

4
by: Marco Alting | last post by:
Is it possible to INNER JOIN two recordsets in ASP? I don't mean the normal JOIN you would use with two tables, but actually join the recordsets in ASP?
2
by: Pieter Linden | last post by:
The answer to this one is probably "test it yourself and find out!", but I'll ask anyway. Pursuant to my previous question - sending separate recordsets to Word using the CreateTableFromRecordset...
5
by: AFN | last post by:
Hi. I'm pretty comfortable binding a single recordset result to a datagrid. But now I have a more unique problem. I have 2 really long stored procedures that cannot be combined at the SQL...
2
by: Sky | last post by:
Basically, I'm stumped on how to translate something I wrote in PHP to ASP.NET, and I'm having a hard time figuring out what is right way to do it now... The scenario in PHP was as follows: I...
16
by: Randy Harris | last post by:
I was inspired by the recent discussion of returning multiple recordsets to ADO from a stored procedure. (Amazed is probably more accurate). I asked about how to accomplish same with Oracle and...
34
by: Jeff | last post by:
For years I have been using VBA extensively for updating data to tables after processing. By this I mean if I had to do some intensive processing that resulted in data in temp tables, I would have...
24
by: Donald Grove | last post by:
I want to populate an array with values from an ado recordset (multiple rows) I use the absolute position of the cursor in the recordset to define the row of my array to be populated. I have a...
3
by: wgblackmon | last post by:
I'm currently running the following statement that is used in a Crystal Report. Basically, a record is returned when the T_PAYMENT.amount has a record in the database based on the value of the...
2
ADezii
by: ADezii | last post by:
Create Indexes on all Columns used in 'ad hoc' Query Joins, restrictions, and sorts (Jet already creates Indexes for Enforced Relationships). Use Primary Keys instead of Unique Indexes wherever...
1
by: LL-JK | last post by:
Hi Guys, Hopefully you will understand my problem. I have a spreadsheet that i import into a table which contains job data. Using a number of queries i can filter the data as requested. What...
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...
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
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.