Coding in VB to display form in datasheet view

K

kevin0862

Can someone assist me. I'm trying to code my form to open in datashee
view, since the default datasheet view is not initializing
 
J

Jeff

Kevin,
try "DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria"
stDocName is the name of ur doc; stLinkCriteria is the where clause.
pass in acFormDS (datasheet view)

That should work

Jeff
 
Top