Using Autokeys Macros

M

Mary Fetsch

In Access 2000, I have an Autokeys macro set up where the F2 key opens my
Setup form so that it can be edited.
So in my Autokeys module, the Macro Name is "{F2}", the Action is
"OpenForm", the Form Name is "Setup", and the Data Mode is "Edit".

I have a button on my toolbar assigned to this Autokeys {F2} macro. So
when I click my toolbar button, it opens my Setup form in edit mode.

Is there a way in Visual Basic that I can adjust this Autokeys {F2} entry so
that the Data Mode is "Read Only"? I sometimes want my Setup form to be
opened so that it can be edited, but there are times when I want it opened
so it can not be edited. I would like to have just one key and one toolbar
button to open the Setup form and then use VB to change the Autokeys macro
depending on how I want the form opened. Is this possible?

I'll appreciate any help anyone can give me on this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top