Opening Forms in Datasheet view via VBA

RandomNeeds

Registered User.
Local time
Yesterday, 22:31
Joined
Sep 3, 2010
Messages
18
I have read various answers on how to open a form in Datasheet view from VBA code, but I can't get my syntax correct. Please help?


Here is one of my 50 attempts to guess at the format. Removing different components, separators, variables only gets me a syntax error of missing separator or "expected =".



DoCmd.OpenForm ("frm_OrdersHOTHeadersOnlyWORKSHEET", [View as acFormView=acFormDS], , , , ,[acFormEdit])
:banghead:
 
That worked! Bingo!

Thank you!!!!!
 

Users who are viewing this thread

Back
Top Bottom