Results 1 to 6 of 6
  1. #1
    justauser is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    15

    Information message on current event

    I have a form that I'm using to track dates of when I am processing some documents. I have a checkbox on this form that I use when I receive a revised version of the document. I have a 2nd form to track the revision information. I would like to automate the first form to give a user message telling that I have received a revision to the document when that box is checked. I was told to use the on Current event. I have tried to enter the code in, but it will only give me the message when I open the form initially, not when a separate record is opened. I am using a combobox within the same form to search for the records. Is there something with my code that I need to change to get the message to pop when I access the record? Or do I need to create a macro to do this, and if so how would I go about doing that? Here is the copy of my code.

    Private Sub Form_Current()
    If Forms![Groups on Payhold].[Revised Packet Received] = True Then

    MsgBox ("GID has received a Revised Packet for this group. Please use the Revised New/Renwal Form."), vbInformation, "Revised Packet Received"

    End If
    End Sub

    My first form is called Groups on Payhold, and the checkbox is named Revised Packet Received.

  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,518
    What do you mean by "a separate record is opened"? The current event fires when the user changes records via navigation buttons, so if the next record viewed has that field as true, that message should fire.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    justauser is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    15
    I don't have the record navigation buttons enabled as they are useless in a table that contains hundreds of records. Is there a way to refresh so that message pops when a group is selected from the combo box?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    The current event should be firing with "find a record" combos as well. Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    justauser is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    15
    I got it working. Thank you so much for your help on this! You have saved me so much time.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    No problem, glad you got it sorted out.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. "On Current" event and ActiveX controls
    By beru777 in forum Programming
    Replies: 7
    Last Post: 12-20-2011, 10:32 AM
  2. Replies: 5
    Last Post: 10-26-2011, 02:59 PM
  3. Replies: 1
    Last Post: 02-25-2011, 11:32 AM
  4. Replies: 7
    Last Post: 01-19-2011, 10:39 AM
  5. Replies: 0
    Last Post: 05-09-2009, 09:04 PM

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