Results 1 to 9 of 9
  1. #1
    saudkazia is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Location
    India
    Posts
    71

    First print of record original all others duplicate


    Sometimes we need to ensure only one original invoice is printed. Rest of the times an invoice must display that it's a duplicate...
    Using Northwind invoice as example...how can this be achieved...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Don't understand what you want. What condition determines when there should be one and when there should be duplicate?

    Is this related to your other thread https://www.accessforums.net/reports...eet-55659.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.

  3. #3
    JamesDeckert is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    Sounds like you'll need to have a field (boolean) in the invoice table to show if the invoice has been printed.

  4. #4
    saudkazia is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Location
    India
    Posts
    71
    James. That's correct. But is there a way to determine whether a Report has been printed (not previewed but actually Printed)

  5. #5
    saudkazia is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Location
    India
    Posts
    71
    June. I'll break it down for you.
    I create and print an invoice. First print will determine that it's an original and a label will be printed that it's original.
    Once I have printed the label will change to Duplicate to know that this is the second or more print and not the original

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    As James said, need a field (Yes/No will do) to flag that the record has been printed to invoice. Then this field can be used as criteria for what value displays in 'label' - use a textbox with an expression.

    The real trick is figuring out what event to put the code in that updates the field value. Could be in button Click event that sends document to print.
    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.

  7. #7
    JamesDeckert is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    >>But is there a way to determine whether a Report has been printed (not previewed but actually Printed)
    I don't know about this but you could in your form have a button to print the report (bypassing print preview), then you'd know it has been printed.

  8. #8
    saudkazia is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Location
    India
    Posts
    71
    i like that idea. case resolved

  9. #9
    JamesDeckert is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    You might want to prompt the user after the print to confirm the printout and at that point record it as printed.
    At least make sure there is error handling so that if the print gets an error, you don't record it as printed.

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

Similar Threads

  1. Replies: 3
    Last Post: 09-30-2015, 03:06 PM
  2. Replies: 6
    Last Post: 03-01-2014, 07:07 AM
  3. Replies: 5
    Last Post: 05-02-2012, 07:56 AM
  4. If duplicate record, go to original record
    By BigBear in forum Forms
    Replies: 2
    Last Post: 10-06-2010, 02:58 AM
  5. If duplicate record, go to original record
    By islandboy in forum Access
    Replies: 51
    Last Post: 06-02-2010, 04:17 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