Results 1 to 7 of 7
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Macro and check box

    I'm playing with ideas. I want a check box to be checked and unchecked automatically. Is there a way to make a macro do this?

  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,518
    Sure, using SetValue or SetProperty depending on version.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    I'm using Access 2013

  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,518
    Okay. Post back if you get stuck.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Click image for larger version. 

Name:	macro.jpg 
Views:	6 
Size:	25.9 KB 
ID:	26456
    Yes, I did get stuck. I want it to change my check box when I add a date in the field. I used the event - on change in the properties. I put this into the macro. I want it to check the box. I get an error. Click image for larger version. 

Name:	Error.jpg 
Views:	6 
Size:	65.9 KB 
ID:	26457

  6. #6
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Disregard. I had the wrong control source. I changed it and it works like a charm. Thanks

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    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: 4
    Last Post: 11-08-2016, 07:49 PM
  2. How to check if email was sent when macro run.
    By behnam in forum Programming
    Replies: 2
    Last Post: 07-18-2014, 05:48 AM
  3. Replies: 4
    Last Post: 02-03-2014, 12:16 PM
  4. Replies: 8
    Last Post: 05-25-2012, 11:42 AM
  5. Noob Question macro to check checkbox
    By bradmitchell in forum Access
    Replies: 1
    Last Post: 05-13-2012, 10:08 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