Results 1 to 5 of 5
  1. #1
    foofah is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    1

    Print just one record for dummies??

    Hi all,


    I've read at least a dozen other threads on how to print just one record of a report, but I am in over my head here. I've figured out some VBA script for a few other things, but I just don't understand the first thing about how to make a command button that does something or how to write a macro. So I see all these example command scripts, and I just don't know where I am supposed to put this script or which parts of the script I need to replace with specific references to my database. Like I've seen people link to http://access.mvps.org/access/reports/rpt0002.htm but I just don't know what to do with this, and I apparently don't know what to google to help me figure out what to do with it.

    Please help??

    Thanks,
    Kelly

  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,652
    Welcome Kelly. Does this help?

    http://www.baldyweb.com/FirstVBA.htm

    and if your field isn't numeric:

    BaldyWeb wherecondition
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    The code in second link can be applied to report.

    DoCmd.OpenReport "your report name here", , , your criteria here per examples in the link - make appropriate substitutions
    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
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Did the link not state that clearly enough?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I see that statement now, before I just saw the command syntax for OpenForm and didn't really read everything.
    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.

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

Similar Threads

  1. print record
    By slimjen in forum Forms
    Replies: 4
    Last Post: 10-07-2013, 01:59 PM
  2. How to print only one record
    By Mobile in forum Access
    Replies: 10
    Last Post: 06-19-2013, 01:33 PM
  3. Replies: 5
    Last Post: 10-26-2011, 02:59 PM
  4. Very Easy, but cant find the 'FOR DUMMIES' thread
    By Steven.Allman in forum Queries
    Replies: 1
    Last Post: 03-04-2010, 04:06 AM
  5. Print a different image per record
    By mcaldwell in forum Reports
    Replies: 5
    Last Post: 04-24-2009, 02:00 PM

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