Results 1 to 6 of 6
  1. #1
    sjl is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    3

    Unhappy Cannot locate VBA code for MsgBox!

    Hello,



    I developed an Access database several years ago, and now I need to change a few parameters. In one of the subforms (of the main Form), when two particular dates are equal, a "MicroSoft Access" message pops up with the message (that I must have written): "Approval date must be later than the submission date". I need to change the code for this (to allow the dates to be equal), but I cannot find either the algorithm nor the MsgBox ! I have used Find to search all my VBA code and it just is not there!

    And, I looked at the event procedures of each field of the subform (and the main form), to no avail.

    Any ideas where the MsgBox/code could be hiding !?!

    Thanks much,
    sjl

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    Check the Validation Rule and Validation Text properties of the controls. Any macros in the project?
    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
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    if necessary, you can use the FREE V-TOOLS which has a thing called TOTAL DEEP SEARCH and it can find things like that for you.

  4. #4
    sjl is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    3
    Thanks guys.

    Yes, I have checked the validation rules and texts; do have macros but doubt algorithm would be there (but will double check).

    Bob- I was keen on using the v-tools but just cannot get it to install (even with their hints)....guess will have to see if I.T. will give me the right permissions (doubt they will).

    If anyone has any other thoughts--I'm still stuck!

    thanks,
    sjl

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    I use Rick Fisher's Find and Replace (cost about $50). Has been a life saver.

    Do you want to provide project for analysis?
    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.

  6. #6
    SteveH2508 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Chelsea, London, England
    Posts
    117
    This sounds to me like a table level validation. Bring up the table properties and it should be lurking in there under validation rule and validation text.

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

Similar Threads

  1. Open form and locate it on the bottom
    By Dominaz in forum Forms
    Replies: 4
    Last Post: 11-17-2011, 08:03 PM
  2. Yes No msgbox
    By imintrouble in forum Access
    Replies: 3
    Last Post: 10-14-2011, 02:24 PM
  3. MsgBox
    By Mtyetti in forum Forms
    Replies: 4
    Last Post: 07-27-2011, 01:51 PM
  4. Msgbox with data in
    By AndycompanyZ in forum Programming
    Replies: 9
    Last Post: 06-27-2011, 07:52 AM
  5. Msgbox And Search Code Not Working Properly
    By vampyr07au in forum Forms
    Replies: 1
    Last Post: 05-02-2011, 05:16 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