jcervantes said:
How about just switching from datasheet to
regular form view? whats the code for that?
DoCmd.RunCommand acCmdFormView
But you can't use a button on the form to do this because
datasheet view only displays the sheet so there's no way to
display the button.
You could use the form's double click event, but that's kind
of ugly because the various parts of a datasheet already use
that select rows and/or columns..
Alternatively, you could switch views from a tool bar or
some other form, but, since DoCmd only operates on the
active object, you have to make sure the form has the focus
first.
Note: You can switch from form view to sheet view by using:
DoCmd.RunCommand acCmdDatasheetView