Results 1 to 7 of 7
  1. #1
    Felix_too is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    6

    "Hero" needed for help with Access Forms!!!

    I have set up a form to show data held within a table named "Customers". This form contains a subform named "Invoices" which shows data held within a table named "Invoices". This subform shows all the invoices related to each customer and has a 1 (Customers) to many (invoices) relationship. So when I click through each customer, in the subform I can see all the invoices related to that particular customer.



    ... So far so good!...

    What I now want to do is to add a button next to the invoice line that when clicked, will print out just that particular (single) invoice... NOT ALL THE INVOICES! - which is what it wants to do!!!

    I have designed a report to use for this purpose (which is also named "Invoices") and I can get as far as setting up a button that when clicked, prints off ALL invoices, but not just that single one.

    I must make it clear here that I am NOT in anyway an expert with Access and my knowledge is limited to only making up tables and straightforward forms and I have no programming ability.

    If you can give me step by step (idiot proof) instructions on how to set this up, I would be eternally grateful!... because it's now starting to do my head in! :-(

    Yours hopefully... Tony Law

  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,521
    This should work, using OpenReport instead of OpenForm:

    BaldyWeb wherecondition

    If you need help on where to put the code:

    http://www.baldyweb.com/FirstVBA.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Paul's the hero!!!

  4. #4
    Join Date
    May 2010
    Posts
    339

  5. #5
    Join Date
    May 2010
    Posts
    339
    Oops saved twice.

  6. #6
    Felix_too is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    6
    Thank you all for your help, however the "Hero" award goes to... <<<Drum Roll>>> ... Access Blaster!!! After 18 hours of trying to sort this, your post got me there.

    Thanks for digging me out of this hole :-)

  7. #7
    Join Date
    May 2010
    Posts
    339
    Allen Browne is the real Hero. Glad it worked out.

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

Similar Threads

  1. Help needed with "and=" statement
    By newtoAccess in forum Queries
    Replies: 4
    Last Post: 12-06-2010, 04:10 PM
  2. Replies: 3
    Last Post: 10-21-2010, 10:54 AM
  3. Replies: 3
    Last Post: 04-10-2010, 10:22 AM
  4. aSTR = Dir("C:\*.*") >> "Type Mismatch"
    By JGrant in forum Programming
    Replies: 1
    Last Post: 03-28-2009, 05:17 AM
  5. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 PM

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