Command Button Problems

margt_a

Registered User.
Local time
Today, 03:41
Joined
Aug 15, 2002
Messages
35
I have a command button that is supposed to open a form in datasheet view and show a list of records... nothing complicated. The problem is that the form will only open in form view. I have even set the form so that only datasheet view is allowed. If I open the form directly, without using the command button, it opens in datasheet view.

Any Ideas?
Thanks!
Margaret
 
I never use the Datasheet view, but this seems to work...

DoCmd.OpenForm "frmYourFormName", acFormDS

HTH
Chris
 
The code bit worked! Thank you,
Margaret :)
 

Users who are viewing this thread

Back
Top Bottom