Open Form in add mode (1 Viewer)

Cosmos75

Registered User.
Local time
Today, 05:44
Joined
Apr 22, 2002
Messages
1,281
What code opens a form in add mode?

I have a form (paint) with a subform (constituents).

The subform has a button to open up a table that contains constituents. I want to have two buttons

- one to open up the constituents form in add mode so that the user can add a new constituent
- one to open constituents form so I can edit the current selected constituent [I/(I think Microsoft's Knowledge Base has an article on this?)[/I]
 

Travis

Registered User.
Local time
Today, 03:44
Joined
Dec 17, 1999
Messages
1,332
Add
DoCmd.OpenForm frmName, acNormal, , , acFormAdd

Edit
DoCmd.OpenForm frmName, acNormal, , , acFormEdit
 

David R

I know a few things...
Local time
Today, 05:44
Joined
Oct 23, 2001
Messages
2,633
Don't forget the WHERE clause in the second example.

Check the Access Help file 'Synchronize records between two forms' to see what I mean.
 

Users who are viewing this thread

Top Bottom