Results 1 to 10 of 10
  1. #1
    PerniceJ is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    5

    Record Yes/ no check

    Hello


    I have a form with 1000 different record filter base name.



    EX

    Name
    DESCR
    Type
    Pictures
    Jon test Yes/no
    Yes/no
    Jon No test
    Yes/no
    Yes/no

    What i am trying to do is every time record said "test" under
    DESCR
    it in It set the field to enable False

    If Me.DESCR.Value = "
    test
    " Then
    Me.Pictures.Enabled = True


    Else

    Me.Pictures.Enabled = False

    End If


    End Sub


    The following only work when test is the record in that set.

    Thanks
    Jonathan

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    You have a Form and on that Form you have 1000 filters?

    Are you asking "How do I find 'text' anywhere in me.DESCR?" then try
    Code:
    
    If Me.DESCR Like "*test*" Then
      Me.Pictures.Enabled = True
    Else
      Me.Pictures.Enabled = False
    End If
    End Sub
    

  3. #3
    PerniceJ is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    5
    Hello


    Thanks. This code block all different types in
    DESCR field

    thanks

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    ? Solved? Still an issue? We need more info.

  5. #5
    PerniceJ is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    5
    Hello

    The code only work when Test is the only record in that set.

    Thanks

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    The code only work when Test is the only record in that set.
    I don't understand your post?? Do you have a solution to the "issue"?
    If not, then please describe the "issue" in clear terms with an example or 2.

  7. #7
    PerniceJ is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    5
    Hello


    My apologies


    Ex 1

    Work

    Name Desc Pictures
    Jon Test Yes/No
    Jon Test Yes/No

    Jon Test Yes/No


    Doesn't work In this example only want test to be Test to
    Enabled. All record are block.

    Name Desc Pictures
    Jon Test Yes/No
    Jon not Yes/No

    Jon Test Yes/No


    Thanks

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    ??? DESCR or Desc ???

    I need a clear example --I do not understand your requirement.

    It seems a field name may have changed?

  9. #9
    PerniceJ is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    5
    Hello

    Feild name doesnt change the the value does

    Ex
    Field name
    DESCR

    Value
    Pot
    dish
    dog
    fish
    Test

    Need make everting in this field false "
    Pictures.Enabled = False" expect Test for that record set

    Thanks





    Thank

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    If you are saying the Enabled is backwards, then try this

    Code:
    If Me.DESCR Like "*test*" Then
      Me.Pictures.Enabled = False
    Else
      Me.Pictures.Enabled = True
    End If
    End Sub
    If English is not your native language, then write your post in your language and use Google translate to get an English version for posting.

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

Similar Threads

  1. Replies: 5
    Last Post: 08-18-2018, 10:23 AM
  2. Check if record exist
    By sahand in forum Forms
    Replies: 2
    Last Post: 06-11-2014, 07:07 AM
  3. Check if record exists, Check Number
    By burrina in forum Forms
    Replies: 9
    Last Post: 01-06-2013, 03:49 PM
  4. Replies: 3
    Last Post: 10-19-2012, 04:30 PM
  5. Record Conflict Check
    By theilercabin in forum Forms
    Replies: 3
    Last Post: 10-11-2011, 01:55 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