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

form opening in single form - need datasheet

Status
Not open for further replies.

ste4en

Technical User
Aug 1, 2001
69
I am trying to open a form in datasheet format from a button. Even thoug the form itself is set to datasheet view it opens as a single form. I suspect I need to add something between the commas on the Do.Cmd statement, but what?


Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmwp"
DoCmd.OpenForm stDocName, , , stLinkCriteria


Thanks
 
Here you go:

DoCmd.OpenForm strDocName, acFormDS,,stLinkCriteria

In the properties for the form make sure on the Format Tab you have views set to both.

Life's a journey enjoy the ride...

jazzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top