Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switch Form Views

Status
Not open for further replies.

gsfmike

Programmer
Oct 20, 2000
21
0
0
US
I want to switch a form view from Form to DataSheet with a command button. I figured it was as simple as changing the default view to datasheet (Me.defaultview = datasheet) but error 2136 occurs. Can anyone help with this?

Thanks
 
I don't believe you can actually "switch" from Form to Datasheet while the form is open, BUT, what's to stop you from putting a SUBFORM control there in DATASHEET mode, and simply making it visible and bringing it to the front when you want "datasheet" mode?

Jim Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at
 
I know its an old thread but what the hell.

In a macro simply use the sendkeys function and put in %vs as the keystrokes i.e. alt-v,s to change views via the menu. Assuming you've got normal menu on the form, but you can always define your own menu including the function.

While I'm here thanks to everyone, don't know what I'd do without you guys.

Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top