Correction to :Is there better code than this:

1

1aae

Thank you:
Is there better code than this:
DoCmd.OpenForm "form1", acDesign, , , , acHidden (The previous was acdialog)

' here some statements apply to form design
'
'
'many code here

DoCmd.Close acForm, "Form1", acSaveYes


hope any help
 
M

Marshall Barton

1aae said:
Thank you:
Is there better code than this:
DoCmd.OpenForm "form1", acDesign, , , , acHidden (The previous was acdialog)

' here some statements apply to form design
'
'
'many code here

DoCmd.Close acForm, "Form1", acSaveYes


If you are writing a wizard type of procedure to help you
implement your application, that's the way to do it.

If you're thinking of using code like that in a running
application (in response to a user action), then that would
be a terrible way to do whatever you're about.
 

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