Results 1 to 6 of 6
  1. #1
    NOTLguy is offline Advanced Beginner
    Windows XP Access 2002
    Join Date
    Sep 2010
    Posts
    60

    Check Box status

    Is it possible to change the status of a check box ( Client_Status_Active)by entering a date in a date field?

    If IsDate(DeathDate) then
    Client_Status_Active = False
    Endif

    Regards,


    Bill

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Yes, of course. Have you tried it?

  3. #3
    NOTLguy is offline Advanced Beginner
    Windows XP Access 2002
    Join Date
    Sep 2010
    Posts
    60
    Quote Originally Posted by RuralGuy View Post
    Yes, of course. Have you tried it?
    I tried it and got an error message as follows:

    Run Time error '-214735252567 (80020009)
    You can't assign a value to this object

    Debugger stops on the line:

    Client_Status_Active = False
    This field is a Yes/No data type.

    Bill

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Do you have this field bound to a control on the form? If so then make sure the name of the control is different (chkActive maybe??) then change the code to:
    Code:
    If IsDate(DeathDate) Then
       Me.chkActive = False
    Endif

  5. #5
    NOTLguy is offline Advanced Beginner
    Windows XP Access 2002
    Join Date
    Sep 2010
    Posts
    60
    Quote Originally Posted by RuralGuy View Post
    Do you have this field bound to a control on the form? If so then make sure the name of the control is different (chkActive maybe??) then change the code to:
    Code:
    If IsDate(DeathDate) Then
       Me.chkActive = False
    Endif
    That worked perfectly! Many thanks for your continued help with the issues I am facing.

    Regards,
    Bill

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad to help. Don't forget to use the Thread tool and mark this thread as Solved.

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

Similar Threads

  1. Quering to find a status
    By dbuck in forum Queries
    Replies: 5
    Last Post: 09-08-2010, 02:48 PM
  2. To check or Un-Check all Boxes in a form
    By devcon in forum Forms
    Replies: 7
    Last Post: 05-01-2010, 12:03 AM
  3. Check box
    By nashr1928 in forum Forms
    Replies: 5
    Last Post: 04-21-2010, 02:37 PM
  4. Check Box Value
    By mulefeathers in forum Programming
    Replies: 4
    Last Post: 10-09-2009, 08:31 PM
  5. Replies: 0
    Last Post: 09-25-2008, 12:19 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