Results 1 to 2 of 2
  1. #1
    NewToAccess1016 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Feb 2013
    Posts
    1

    Find a duplicate invoice number within two tables with a message box?

    I have two tables "Invoice Log 2012" & "Invoice Log 2013"...I need to know how to create a message box in the "Invoice Log 2013" when I am entering a new record to tell me if the invoice number I am entering is a duplicate entry from either of the two logs. I need the option to either accept the entry and continue or reject the entry. Again, I am new to this. If anyone can help, I would appreciate it immensely. I need a step by step instruction for this.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You could use code in the BeforeUpdate event of the InvoiceNumber control to do DLookup's in the two tables.

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

Similar Threads

  1. Duplicate ID Message
    By Traviscon in forum Programming
    Replies: 1
    Last Post: 05-11-2012, 12:38 PM
  2. Replies: 1
    Last Post: 04-30-2012, 08:42 AM
  3. Verifying duplicate invoice numbers?
    By swaninwa in forum Access
    Replies: 1
    Last Post: 03-27-2012, 04:34 PM
  4. Invoice number
    By slik_02 in forum Access
    Replies: 3
    Last Post: 08-08-2009, 08:05 AM
  5. Invoice Number
    By rzwoo in forum Access
    Replies: 0
    Last Post: 02-25-2009, 01:30 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