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!

Datasheet view doesn't work when hiding access window 1

Status
Not open for further replies.

Jables

Programmer
Aug 28, 2001
148
US
I am using the very helpful macro discussed in the FAQ, which shows how to hide the Access window.

One problem. I have forms that have their
Code:
DefaultView
and
Code:
ViewsAllowed
properties set to Datasheet. They have their
Code:
PopUp
properties set to True as per the FAQ. But when I open them, they don't display in the datasheet view, but only as continuous forms.

I am opening the forms from a command button. Here's what's in the command button's Click event:

Code:
DoCmd.OpenForm "frm1", acNormal

What is really strange is that if I open "frm1" by simply double-clicking it in the database window, then the Access window hides itself and the form displays properly in datasheet view.
 
Of course it would be something that simple. Thank you for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top