Error 2108 using setfocus

M

max

Hi all,

trying to set the focus in a control in a subform, I get the error "You must
save the field before you execute the GoToControl action, the GoToControl
method, or the SetFocus method".
What I don't understand is the reason why writing a line before the set
focus with the save command (docmd.runcommand accmdsave/saverecord) i get
another error casue the command is not available now. I am very confused ...
Any idea for a workaround?

many thanks
Massimo
 

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