Open Form in SubForm Control in Add Mode

OxDavis

Registered User.
Local time
Today, 12:53
Joined
Jul 14, 2005
Messages
74
I am looking to open a form in a subform control, but in "Add" mode. Here is my code to date:

Code:
Case conCmdOpenFormAdd
           With Me.chiSwitch
                .SourceObject = rs![Argument]
                .Visible = True
            End With

How do I let the subform control know that I want the form opened in "Add" mode?
 
When you say "Add Mode" do you mean open a new record?
 
Yes sir, I wish for the form to open with none of the previously entered records visible or the 'acAdd, acNewRec' mode.

To clarify, I will want to open the form in the 'AddNew Record' mode as well as the 'acAdd' mode in different instances, so information on how to do both (not at the same time) would be great.
 
Last edited:
The subform control only has the OnEnter and OnExit events. I keep getting an error when I try to fill the actual switchboard OnLoad event with:

With Forms!frmCM
.Data Entry = True
End With

Weird, it says it can't find the form.
 
Side Note: Oddly enough, I cannot enter data into those forms when they get opened by the subform control. Any reason this might be happening? When I open them normally, outside the subform control, it gives me the option to input data.
 

Users who are viewing this thread

Back
Top Bottom