Load a form in datasheet view from another form
Posted on 2004-09-07
I've got a form with a command button that I want to open a separate form in Datasheet view. All form properties on the second form are set to datasheet specifically with an event procedure under the command button from the first form to load the second as a filtered form. If I put the code "DoCmd.RunCommand acDatasheetview" it errors out with "datasheet view is not available" after canceling the error the form loads in the form view. Which can be manually switched to datasheet view. If I try a macro specifying Datasheet in the "On Load" property of the second form I get an Action Failed window which when halted opens the form in Form view? What am I missing.