Connecting Tech Pros Worldwide Help | Site Map

Okay, I'm confused

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 06:04 AM
Rich R
Guest
 
Posts: n/a
Default Okay, I'm confused

As an ex VB6 programmer, I have now moved on to Access. I understand Forms
and Subforms. But here is what I don't understand: When I create code, I
have to create an ADO connection, a recordset, et al. When I am in code
mode, is there no connection with Access anymore? What am I missing here?

Rich

--
The journey is the reward.



  #2  
Old November 13th, 2005, 06:04 AM
MGFoster
Guest
 
Posts: n/a
Default Re: Okay, I'm confused

Rich R wrote:[color=blue]
> As an ex VB6 programmer, I have now moved on to Access. I understand Forms
> and Subforms. But here is what I don't understand: When I create code, I
> have to create an ADO connection, a recordset, et al. When I am in code
> mode, is there no connection with Access anymore? What am I missing here?[/color]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you have an .adp file you'd don't have to create an ADO connection -
the project has CurrentProject.Connection which you can use.

VBA reads data thru Recordsets, DAO or ADO - just as VB did.

Forms, and Reports, have Recordsets based on their RecordSource
property, or, ADO can set a Recordset to a form's/report's Recordset
property (Access 2000 and later versions). For more info read the
Access help on the RecordSource property and Recordset property in Forms
and Reports.

VBA can manipulate data in Form controls and in a form's RecordsetClones
(DAO) or (Recordset.Clones in ADO).

Since Access VBA uses the Access built-in functions I guess you could
say it is still "connected" to Access.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQd9dRoechKqOuFEgEQIY/QCg/29HsWKa7IiGWmxjhEZJLzyB07cAoLws
ub6emQ1BnQ4kQjDOHOJqkN9v
=Gm87
-----END PGP SIGNATURE-----
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.