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 / Forms / November 2007

Tip: Looking for answers? Try searching our database.

Open another form in Add mode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CW - 26 Nov 2007 21:04 GMT
On my Orders form I want to have a command button that will open my
InvoiceCreate form in Add mode, so that I can build a new invoice.
The Command Button Wizard includes opening a form but only if you link a
field or display all records - it doesn't seem to provide the option of
opening a form empty in order to add a new record.
Could somebody please provide some code for this?
Many thanks
CW
Ofer Cohen - 26 Nov 2007 22:33 GMT
Use acFormAdd in the OpenForm command line to open the form in Add record state

Docmd.OpenForm "InvoiceCreate",,,,acFormAdd
Signature

Good Luck
BS"D

> On my Orders form I want to have a command button that will open my
> InvoiceCreate form in Add mode, so that I can build a new invoice.
[quoted text clipped - 4 lines]
> Many thanks
> CW
CW - 26 Nov 2007 23:32 GMT
Got it - works fine
Many thanks
CW

> Use acFormAdd in the OpenForm command line to open the form in Add record state
>
[quoted text clipped - 8 lines]
> > Many thanks
> > CW
 
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.