Results 1 to 9 of 9
  1. #1
    excelledsoftware is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Sep 2013
    Posts
    4

    Where to Start?

    Hello everyone,

    So I have been using Excel for a very long time and have become very comfortable coding VBA in it. Mostly ifs, loops arrays. That kind of thing. I want to learn Access VBA but I am having trouble finding information to Access objects. How would one write code to look through 1 column of a table and report back how many rows. which I assume would be something simple like [table].[column].count

    But again I havent been able to find some really good tutorials out there.

    Any suggestions on where to start?



    Thanks in advance.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Depends on how/where you need the answer, but a simple query or DCount(), like

    DCount("*", "TableName")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Options:

    1. build an aggregate (Totals) GROUP BY query - Access Help has info on building queries

    2. open a recordset in VBA using SQL and read the RecordCount property of the recordset.

    3. use DCount (a domain aggregate function) in query or in textbox on form/report - Access Help has info about domain aggregate functions

    4. bind form or report to table and use Count function in textbox to count the records in the form/report RecordSource
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    excelledsoftware is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Sep 2013
    Posts
    4
    Thanks for the info so far. I appreciate all the different ways there are to do things. My main question is what is the best way to learn these objects in Access. the Dcount was an example but where is a great starting point for learning Access VBA?

    Thanks again.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    excelledsoftware is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Sep 2013
    Posts
    4
    Awesome! I am surprised I wasnt able to find these before. Thank you very much.

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    You might also find this site useful.

  8. #8
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Not trying to be self promotional, but I do have a series of Youtube videos for beginners.

    https://www.youtube.com/playlist?lis...03jQ_t9nFV737s

  9. #9
    excelledsoftware is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Sep 2013
    Posts
    4
    Quote Originally Posted by Xipooo View Post
    Not trying to be self promotional, but I do have a series of Youtube videos for beginners.

    https://www.youtube.com/playlist?lis...03jQ_t9nFV737s
    I gotta say even though I know a lot about the things you go over in your videos this appears to be the route I am going to learn the most from. Cant wait to get through all the videos.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to start ?
    By haloo in forum Access
    Replies: 7
    Last Post: 05-18-2013, 07:17 AM
  2. Where to start?
    By FullyFamous in forum Database Design
    Replies: 7
    Last Post: 12-20-2010, 03:27 PM
  3. How to start
    By SlowPoke in forum Access
    Replies: 4
    Last Post: 09-16-2010, 07:41 AM
  4. Start
    By LUGO in forum Access
    Replies: 1
    Last Post: 01-30-2010, 11:31 AM
  5. how can i start ?.
    By lavin80 in forum Access
    Replies: 1
    Last Post: 05-23-2009, 11:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums