Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.RunCommand acCmdxxxxx makes form disapear?

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
hi,

I'm trying to perform a 'restore down' command against the main DB shell.

I've tried
Code:
DoCmd.RunCommand acCmdReset
DoCmd.RunCommand acCmdRestore
DoCmd.RunCommand acCmdZoom100

but all that seems to happen is the open form vanishes and i'm left with just a blank DB shell.

why is this happening and how do I perform the desired action.

Thanks,
1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

MIME::Lite TLS Email Encryption - Perl v0.02 beta
 
It's ok, i was given the wrong constant names!

this is the correct syntax
Code:
    DoCmd.RunCommand acCmdAppMaximize
    DoCmd.RunCommand acCmdAppRestore

Not sure why the other commands made my form invisible, another Access quirk I guess?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

MIME::Lite TLS Email Encryption - Perl v0.02 beta
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top