Results 1 to 4 of 4
  1. #1
    craig1988 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2014
    Posts
    82

    Change lable to Visible if a record matches a record from another table


    Hi

    This should be an easy one.

    I have a form that is bound to a query "qryExceptions". The field I am concerned with is "AccNo". As the user toggles through the form I would like a lable "lblSpec", that I would like to be visible if the "AccNo is contained in another table "tblSpecialPrint". The lable would then return to invisible when the user toggles further.

    Hope somebody can help me!!

  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,521
    See if this helps:

    http://www.baldyweb.com/ConditionalVisibility.htm

    Using a DCount() to test against the other table.

    DLookup Usage Samples
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    craig1988 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2014
    Posts
    82
    Hi pbaldy

    Thank you.

    I was on the right track with my DLookup but had forgot to assign some criteria!! Thanks for jogging the memory!!

    Craig

  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,521
    Happy to help Craig!
    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. Replies: 15
    Last Post: 03-05-2015, 03:30 PM
  2. Replies: 3
    Last Post: 01-14-2014, 04:17 PM
  3. Replies: 40
    Last Post: 08-20-2013, 11:38 PM
  4. Replies: 3
    Last Post: 02-19-2013, 08:15 AM
  5. Replies: 1
    Last Post: 11-08-2012, 02:37 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