I want to set some menu options is that possible?

C

Chris K

I want to set some menu options is that possible?
Can anyone pick the syntax for me - think it's self explanitory

DoCmd.DoMenuItem Tools, Options, Keyboard" Move After Enter = Nextfield
DoCmd.DoMenuItem Tools, Options, Keyboard" Arrows key behaviour = Next
character
DoCmd.DoMenuItem Tools, Options, Keyboard" Behaviour entering field = Go to
end of field
 
C

Chris K

Found this that Douglas posted to someone:

Application.SetOption("Move After Enter") = 1
Application.SetOption("Arrows key behaviour") = 1
Application.SetOption("Behaviour entering field") = 2

but I'm getting error "argument not optional" on 1st line
 
S

Stuart McCall

Chris K said:
Found this that Douglas posted to someone:

Application.SetOption("Move After Enter") = 1
Application.SetOption("Arrows key behaviour") = 1
Application.SetOption("Behaviour entering field") = 2

but I'm getting error "argument not optional" on 1st line

The syntax goes like this:

Application.SetOption "Move After Enter", 1
Application.SetOption "Arrows key behaviour", 1
Application.SetOption "Behaviour entering field", 2
 
C

Chris K

Even Smaller correction

Application.SetOption "Move After Enter", 1
Application.SetOption "Arrow key behavior", 1
Application.SetOption "Behavior entering field", 2

There's another 'behavior'

Thanks - it works
 

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