Connecting Tech Pros Worldwide Help | Site Map

Okay, I'm confused

  #1  
Old November 13th, 2005, 07:04 AM
Rich R
Guest
 
Posts: n/a
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, 07:04 AM
MGFoster
Guest
 
Posts: n/a

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-----
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
BitArray bug or I am confused? semedao answers 2 January 9th, 2007 07:15 AM
Confused About PHP!? Cerebral Believer answers 2 September 23rd, 2006 08:55 AM
Okay to move an "object" will-nilly? Frederick Gotham answers 33 July 12th, 2006 12:15 AM
Confused by mysqli Dodger answers 26 July 8th, 2006 03:05 PM
MSMQ - confused about COM - Invoke COM component (trigger rule) Leo Muller answers 1 November 20th, 2005 08:54 PM