Switching from Datasheet to Form View

tedekgb

New member
Local time
Today, 14:29
Joined
Nov 8, 2002
Messages
5
Hi guys

this site rocks

Is there a way to make a command button that can switch a subform's view from datasheet to form view, and vice versa?

Thanks
 
You can simply right click on a continous form to switch to datasheet but you can't go back without restarting the form. I'm sure someone can come up with a solution for you as you said "this site rocks". Maybe form repaint.

Autoeng
 
Last edited:
Try this out.

Code:
Private Sub cmdChangeView_Click()
Me.YourSubformControlName.SetFocus
DoCmd.RunCommand acCmdSubformDatasheet
End Sub
 

Users who are viewing this thread

Back
Top Bottom