form & subform

sigmar

New member
Local time
Today, 04:18
Joined
Jun 25, 2001
Messages
9
Hi,

I have a form with data about customers and a subform with their phones (1 to many, customerID is included in phones table).
Main form's AllowAdditions property is set to false.

In order to add a new customer there's an add button which "onclick" event has this code:

Me.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec

The problem is that when I click, the subform simply disappears, so I can't type any data in.

I'm really stuck so I hope someone can help me. Thanks
 
DoCmd.Go ToControlsubform
DoCmd.GoToRecord you have to set focus to the subform first.
HTH
 

Users who are viewing this thread

Back
Top Bottom