Swith Datasheet to Form

D

DS

I need to switch a Form to Datasheet view from acommand button. No
problem, the problem is how do I switch a Datasheet view to a form view.
I don't have any Toolbars or MenuBars. Can I use a keystroke?
Thnaks
DS
 
G

Guest

You could use the access autokey macro function

Create a new macro
Click Macro Name on the tool bar and put something like ^ABCDE
In the action column put the action you want - like change view
You could put the reverse (back to form) view against ^EDCBA

Or if you can you could put a button on your form and use

Private Sub NameOfButton_Click()
On Error GoTo ErrCmdDatasheet

DoCmd.RunCommand acCmdDatasheetView

Exit Sub


Then simply use the macro to get back to the form when you wanted. (the code
is not really need though if you set up the macro properly - but it's good
practice for me)

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top