I can't get my form to default to the datasheet view from the switchboard so I was going to do an "on load" with the below code but it is not working. Can you let me know what I am missing?
Private Sub Form_Load()
Me.Visible = False
stDocName = "Fm_Schedule_Quick_Glance"
Me.Visible = False
DoCmd.OpenForm stDocName, acFormDS, , , , acDialog
DoCmd.Restore
Me.Visible = True
End Sub