subform trouble

R

rocco

This is something i have already posted, but without receiving reply.
I have an unbound form with a tab control on it. The tab control has 6 pages. On each page there is a subform.
The main (unbound form) has in the header a command button named "add new". I would like that by clicking the "add new" command button each subform go to a new record, saving data entered trough them.
I have found something like this:
Me.subform.SetFocus
DoCmd.RunCommand acCmdRecordsGoToNew
where subform is the subform name but it use a builtin menu command: i dont' like. I would like to understand what is the right process.
Thanks,
Rocco
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top