Your problem is in the line DoCmd.GoToControl "Details".
Change these two lines:
DoCmd.GoToControl "Details"
Me!Details.AllowAdditions
To:
Me!NameOfSubfortmControl.SetFocus
Me!Me!NameOfSubfortmControl.Form!MyField.SetFocus
Me!Me!NameOfSubfortmControl.Form.AllowAdditions
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resource@pcdatasheet.com
Steve,
Still getting the same message "Object doesn't support this property or
method". The last two lines you gave started with 'Me!me!' which I changed
to 'Me!' when it didn't work the first time.
It appears as if the hangup is with the 'AllowAdditions'.
Thanks again.
Harry J.
'The more I learn, the less I know'
> Your problem is in the line DoCmd.GoToControl "Details".
>
[quoted text clipped - 79 lines]
> >> >
> >> > Thank You in advance for any assistance!
Douglas J. Steele - 13 Jun 2007 19:03 GMT
AllowAdditions is a property of the form. You can't simply refer to a
property without doing something with it.
If you're trying to set it to allow additions, you need
Me!NameOfSubfortmControl.Form.AllowAdditions = True
If you're trying to set it to disallow additions, you need
Me!NameOfSubfortmControl.Form.AllowAdditions = False

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Steve,
>
[quoted text clipped - 98 lines]
>> >> >
>> >> > Thank You in advance for any assistance!
Steve - 13 Jun 2007 19:04 GMT
Sorry about "Me!Me"!!
Open your main form in design view. Click on the border that surrounds your
subform (that's the subform control on the main form). Click on properties
and go to the Other tab. What is the name of the subform control?
Now post the code as you have it now.
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resource@pcdatasheet.com
> Steve,
>
[quoted text clipped - 98 lines]
>> >> >
>> >> > Thank You in advance for any assistance!
HMJessen - 13 Jun 2007 19:31 GMT
Steve & Douglas,
Between you two, IT WORKS.
I had to add the '= True" to the end of the 'AllowAdditions' line.
Thank you so much. This has been the holdup for two days, and now we can
move on!
HarryJ
'The more I learn, the less I know'
> Sorry about "Me!Me"!!
>
[quoted text clipped - 111 lines]
> >> >> >
> >> >> > Thank You in advance for any assistance!