Results 1 to 2 of 2
  1. #1
    Grahamvdh is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    8

    Need Help with message box.

    Hi



    I have built a input form that is going to populate a table, it is all very simple.
    The data capture person gets a piece of paper with info on and needs to capture it.

    I have added a button that does the save and new task, and brings up a message box that says remember to write the PTO Number down.
    I would like this message to say "Remember to write W000013 down before filing the PTO"

    How do I get this auto number populated in the popup?
    The primary key is called PTO_Number it id an auto number with a prefix W.

    Thank you for any help

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    If the value of PTO_Number is on the Form at the time when the button is clicked, you can do something like this:

    Code:
    Dim strPTO_Number as String
    
    'Assuming that your PTO_Number text Box on the Form is named 'PTO_Number' . . .
    strPTO_Number = "W" & CStr(Me.PTO_Number)
    MsgBox "Remember to write " & strPTO_Number & " down before filing the PTO!"
    I hope this helps!

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

Similar Threads

  1. Message Box
    By Alex Motilal in forum Forms
    Replies: 1
    Last Post: 03-27-2012, 08:31 AM
  2. Message box
    By tomneedshelp in forum Forms
    Replies: 1
    Last Post: 03-22-2012, 10:27 AM
  3. Message Box
    By dr223 in forum Access
    Replies: 11
    Last Post: 01-12-2012, 11:59 AM
  4. Message Box
    By JayX in forum Access
    Replies: 6
    Last Post: 12-13-2011, 02:28 PM
  5. message box help
    By shaz10010 in forum Forms
    Replies: 1
    Last Post: 04-17-2009, 09:11 AM

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