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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help with opening forms using command button

Status
Not open for further replies.

dbar10

Programmer
Dec 5, 2008
196
US
I am building a menu page in Access and am using command buttons to open the forms for some basic setup tables in my program. when I open the forms directly, they open in datasheet view(as I wish). But when I open them with the command button method from the menu page, they open in Single Form view (which I don't want). In the properties dialog of each form I have them set to open to datasheetview and have said no to other views. They still open to form view when using the command button. can you tell me how I can fix this? thanks
 
How are ya dbar10 . . .

Notice the parameter in [purple]purple[/purple]:
Code:
[blue]  DoCmd.OpenForm "[B][I]FormName[/I][/B]", [purple][b]acFormDS[/b][/purple][/blue]
[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top