ADO vs DAO with recordset operations 
Author Message
 ADO vs DAO with recordset operations

Greetings all,

I am trying to populate some fields in a subform based on
the data entered in the master form.  this is accounting
stuff, so enter general info to receive an invoice, and
have the code write the details into several records in
the subform.  I have done this with earlier versions using
the open recordset operations using DAO.  Hwever, my new
2002 version seems to be leading me to 'ADO' what ever
that is.  I can open the recordset (querydef in the old
lingo), but I cannot use the AddNew procedure, etc within
the rcdset.  

Can anyone guide me to a more general discussion on what
has changed in the access 2002 programming language, and
specifically how to get around (or a better way to do
this). I am a casual programmer with not enough time to
really dig into the languages....  rather using wizards
until I have to code something.  It's quicker!

Cheers,
BRich



Sat, 27 Nov 2004 03:58:34 GMT  
 ADO vs DAO with recordset operations
If the data is stored in an mdb file, simply load the DAO library and do the
code your old comfortable way.  With any module open in the VBE window,
choose References from the Tools menu, uncheck the Microsoft ActiveX Data
Objects library and then scan down and find Microsoft DAO 3.6 Object Library
and check that.

--
John Viescas, author
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)

Quote:
> Greetings all,

> I am trying to populate some fields in a subform based on
> the data entered in the master form.  this is accounting
> stuff, so enter general info to receive an invoice, and
> have the code write the details into several records in
> the subform.  I have done this with earlier versions using
> the open recordset operations using DAO.  Hwever, my new
> 2002 version seems to be leading me to 'ADO' what ever
> that is.  I can open the recordset (querydef in the old
> lingo), but I cannot use the AddNew procedure, etc within
> the rcdset.

> Can anyone guide me to a more general discussion on what
> has changed in the access 2002 programming language, and
> specifically how to get around (or a better way to do
> this). I am a casual programmer with not enough time to
> really dig into the languages....  rather using wizards
> until I have to code something.  It's quicker!

> Cheers,
> BRich



Sat, 27 Nov 2004 04:35:08 GMT  
 ADO vs DAO with recordset operations
I'd go with John's suggestion, and use DAO, but just for the sake of
completeness, the reason you're having trouble using AddNew is probably
because, unless you specify the appropriate arguments, the ADO Open method
defaults to opening a read-only recordset.

--
Brendan Reynolds (MVP)

Access 2000/2002 sample app at
http://brenreyn.brinkster.net
----------------------------

Quote:
> Greetings all,

> I am trying to populate some fields in a subform based on
> the data entered in the master form.  this is accounting
> stuff, so enter general info to receive an invoice, and
> have the code write the details into several records in
> the subform.  I have done this with earlier versions using
> the open recordset operations using DAO.  Hwever, my new
> 2002 version seems to be leading me to 'ADO' what ever
> that is.  I can open the recordset (querydef in the old
> lingo), but I cannot use the AddNew procedure, etc within
> the rcdset.

> Can anyone guide me to a more general discussion on what
> has changed in the access 2002 programming language, and
> specifically how to get around (or a better way to do
> this). I am a casual programmer with not enough time to
> really dig into the languages....  rather using wizards
> until I have to code something.  It's quicker!

> Cheers,
> BRich



Sat, 27 Nov 2004 20:16:18 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ADO Recordsets and Forms (ADO vs DAO)

2. Using ADO Recordset with Forms (ADO vs DAO)

3. DAO.Recordset vs ADO.Recordset

4. ADO vs. DAO Recordsets

5. opening recordset : DAO vs. ADO

6. ADO vs DAO vs ADODB

7. DAO or ADO faster for long recordsets?

8. DAO recordsets to ADO?

9. Data Validation in ADO Form Recordset Versus DAO RecordsetClone

10. ADO Recordset/DAO queryDef recordsource


 
Powered by phpBB® Forum Software © phpBB Group