Results 1 to 3 of 3
  1. #1
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159

    Form Filter Combo - msgbox when user tries to enter data here

    Hi all,



    I use filter Combo boxes in a lot of places so that users can filter records easily. (Not combo boxes for input)

    I have them labeled as filters but nonetheless users keep trying to input into them for some reason.

    How would I add a message box to it so that it states that 'this box is not for data entry etc'

    Is it the on dirty event or something like that?

    Thank ya kindly,
    Rich.

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    Set the LimitToList property to True, and use the Not in List event to display your custom error message. You can suppress the MS Access error message by setting response (it's one of the event parameters) to acDataErrContinue (that is for A2003)

    HTH

    John

  3. #3
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Quote Originally Posted by John_G View Post
    Hi -

    Set the LimitToList property to True, and use the Not in List event to display your custom error message. You can suppress the MS Access error message by setting response (it's one of the event parameters) to acDataErrContinue (that is for A2003)

    HTH

    John
    Thanks, worked nicely!

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

Similar Threads

  1. Replies: 4
    Last Post: 05-28-2012, 09:39 AM
  2. Replies: 6
    Last Post: 04-27-2012, 01:31 PM
  3. Replies: 4
    Last Post: 02-27-2012, 10:29 AM
  4. Replies: 3
    Last Post: 12-14-2011, 01:24 PM
  5. how to filter data using two combo boxes?
    By jasonix in forum Reports
    Replies: 3
    Last Post: 11-21-2011, 03:04 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