Automatically filling a check box via a macro

I have a simple macro (see below) for an access 2013 database that has you can see prompts for a message box to inform the user to select a check box (called "complete trans"). The problem is a good portion of our folks forget to check the box (go figure). What I would like to do is have the box automatically checked once they select ok on the message box. What is the line of code to accomplish this? Below is my macro.

Option Compare Database

' Macro1
Function Macro1()
On Error GoTo Macro1_Err

    DoCmd.OpenQuery "Append History Database", acViewNormal, acEdit

    Exit Function

    MsgBox Error$
    Resume Macro1_Exit

End Function
DJ PAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
That will be:

Me![complete trans].Value = True

Open in new window

or, if you prefer:

Me!("complete trans").Value = True

Open in new window

However, do avoid spaces in control names. Then it would be:

Me!CompleteTrans.Value = True

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
If you are auto ticking the box then it might as well not be there.  Just have a confirmation with OK button.
DJ PAuthor Commented:
Gustav, so I would place your suggestion below the msgbox line of code correct?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Gustav BrockCIOCommented:
DJ PAuthor Commented:
Awesome. Thanks so much.
Gustav BrockCIOCommented:
Great. Then please mark as answered.
Have a nice weekend!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.