Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / December 2007

Tip: Looking for answers? Try searching our database.

Form Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 31 Dec 2007 20:24 GMT
I have a command button on my form I use to look at the "Datasheet view"  
after closing the datasheet it doesn't return back to the form it returns me
to the switchboard.

Private Sub Command23_Click()
On Error GoTo Err_Command23_Click

DoCmd.OpenForm "frmScanlog", acFormDS
Exit_Command23_Click:
   Exit Sub

Err_Command23_Click:
   MsgBox Err.Description
   Resume Exit_Command23_Click
   
End Sub

Thanks for your help.
Adien - 31 Dec 2007 20:33 GMT
I believe since the datasheet veiw of the form is just another way to
see the form, when you click the cmd button it doesn't open a new
instance of the form, it just alters the one you have.
Richard - 31 Dec 2007 20:45 GMT
ok so can I add code to the button to reopen the form when I am finished with
the datasheet view?

> I believe since the datasheet veiw of the form is just another way to
> see the form, when you click the cmd button it doesn't open a new
> instance of the form, it just alters the one you have.
Arvin Meyer [MVP] - 31 Dec 2007 20:56 GMT
Use the same code, but leave off the datasheet view (acFormDS)
Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

> ok so can I add code to the button to reopen the form when I am finished
> with
[quoted text clipped - 3 lines]
>> see the form, when you click the cmd button it doesn't open a new
>> instance of the form, it just alters the one you have.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.