Results 1 to 2 of 2
  1. #1
    noaccessguru is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    68

    VBA for Command Button

    Hi guys,



    I have a Form for users to enter data and then there is a command Button to Print the Report for that record.

    How do I write in VBA in the 'On Click' event to 'Save Record and then open Table Tbl_DevList' etc?)
    (I need to 'save record first' because one of my calculated fields isnt updating properly and this is solving it)

    I know how to do it as a Macro but would rather do it in VBA and everything I try isnt correct


    I know this is a simple, easy question for most of you....so TIA

  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
    I'd probably use this for the report:

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

    the save is often done with

    If Me.Dirty Then Me.Dirty = False
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 08-04-2013, 07:11 AM
  2. Command Button
    By JayX in forum Access
    Replies: 1
    Last Post: 03-13-2012, 06:35 PM
  3. command button
    By berni3883 in forum Forms
    Replies: 17
    Last Post: 04-22-2011, 12:04 AM
  4. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  5. Command Button Help!
    By arthura in forum Programming
    Replies: 3
    Last Post: 06-30-2009, 12:55 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