View Full Version : Cmd Button to Add Rec to SubForm


Neo90815
08-22-2000, 12:34 PM
Hello,

I have a Form called Call Manager!, and a subform called Comments Log. I would like to create a command button to add new record to Sub Form "Comments Log". The command button needs to be reside on Call Manger Form.

Any idea or suggestions? Thank you in advance.

Sincerely

Jack Cowley
08-22-2000, 02:36 PM
This code should do it....

DoCmd.GoToControl "Comments Log"
DoCmd.GoToRecord , , acNewRec

HTH,
Jack

Neo90815
08-22-2000, 03:14 PM
Thanks again!

That works perfectly.


[img]http://www.aol-aol.americangreetings.com/pickup.pd?i=83855262&m=8470&r
r=y&source=aol-aol999[img]

[This message has been edited by Neo90815 (edited 08-22-2000).]

Jack Cowley
08-22-2000, 05:57 PM
Hello Long Beach, a lovely city...

Thanks for the card and you will be surprised at the resemblence between me and the 'fellow' on the card!

Thanks again and continued success....

Jack