Results 1 to 5 of 5
  1. #1
    carrybag93 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    7

    Question Someone to help me understand a guide

    I need help comprehending how to use this:



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

    I'm sure it makes sense, but I've only been using Access for a few weeks now, so I need someone more experienced to help me understand it.

    What I need to achieve is, when the user finishes filling out their order form, they save it (the record) and then below the 'save' button is a button that generates a receipt, based on the information they just filled out. The receipt should be in form order, and should include all of the information filled in the form. Is this possible? Does the guide linked above solve this problem? If so, could someone please explain how to do that for newbies like me :P

    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Is the receipt a form or report (a report is best if printer is destination). The link is suggesting code that would be executed in a VBA procedure. The criteria you need for the invoice is the invoice number that was just saved. If the object to print is a report, something like (assumes invoice ID is a number type):

    DoCmd.OpenReport "report name here", , , "[invoice ID field name]=" & Me.[invoiceIDfieldname]

    Review http://office.microsoft.com/en-us/ac...010341717.aspx
    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.

  3. #3
    carrybag93 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    7
    I'm not sure where to place the code, and what to change it to so it works for me.

  4. #4
    carrybag93 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Posts
    7
    Quote Originally Posted by June7 View Post
    The link is suggesting code that would be executed in a VBA procedure.
    Is this a macro? I looked at the link you left and is that what it's saying? I'm not sure what you mean in the code with [invoice ID field name] and [invoiceIDfieldname] ... do I need to change these to something or leave them like that? Does that code make a whole new report or open an old one? I'm so confused...

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    I use only VBA so the example given is for VBA procedure although macro has equivalent syntax.

    Yes, put the real names of your report and fields in place of the generic example.

    The code needs to be in an event, such as a command button click.

    That link should get you started with writing code. And here is a tutorial you might find helpful http://datapigtechnologies.com/flash...mtoreport.html
    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. VBA & VBA GUI Guide?
    By bginhb in forum Programming
    Replies: 2
    Last Post: 04-01-2012, 08:39 AM
  2. Including a user guide within an application
    By PippaPippa in forum Forms
    Replies: 7
    Last Post: 03-10-2012, 04:36 AM
  3. plz guide about access
    By ali zaib in forum Access
    Replies: 3
    Last Post: 01-10-2012, 11:25 AM
  4. Newbie Need Guide and advise on Query
    By sabrish72 in forum Access
    Replies: 3
    Last Post: 05-24-2011, 08:44 PM
  5. Patients Record Table - Guide me someone!
    By cluendo in forum Access
    Replies: 16
    Last Post: 01-24-2011, 11:47 AM

Tags for this Thread

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