VB Code to change the Allow Additions Property
- From: paquer@xxxxxxxxx
- Date: 30 Mar 2007 13:23:11 -0700
I want users to be able to set the Allow Additions property to 'True'
via a command button when required. (The command also adds data to the
subform) If they skip the command, they skip the data transfer. Hence
I want to set the Allow Additions property via a command button.
I set up the command button with the following code, but I keep
getting an error: Method or Data Member not found (Debug highlights
the allow additions section.
The command button is located on the main form.
Here are the variations of code I have tried;
Private Sub Create_Job_Click()
Me.Field_Form_Sub.Visible = True
Me.Field_Form_Sub.SetFocus
Field_Sub_Form.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
Private Sub Create_Job_Click()
Me.Field_Form_Sub.Visible = True
Me.Field_Form_Sub.SetFocus
Me.Field_Sub_Form.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
Private Sub Create_Job_Click()
Me.Field_Form_Sub.Visible = True
Me.Field_Form_Sub.SetFocus
Me.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
Am I putting the Allow additions in the wrong place? Any help would be
greatly appreciated.
.
- Follow-Ups:
- Re: VB Code to change the Allow Additions Property
- From: paquer
- Re: VB Code to change the Allow Additions Property
- Prev by Date: Re: This newsgroup interface is old ... we need a new forum.
- Next by Date: Re: VB Code to change the Allow Additions Property
- Previous by thread: DSN-less connection with Oracle 10 drivers
- Next by thread: Re: VB Code to change the Allow Additions Property
- Index(es):