New record in subform with Access 2000

D

Del

I have a parent form with no record source. On this parent form i have a
subform whose record source is a table. How can i direct the subform to a
new record in response to an event on the parent form?
 
J

John W. Vinson

I have a parent form with no record source. On this parent form i have a
subform whose record source is a table. How can i direct the subform to a
new record in response to an event on the parent form?

You could use code like:

DoCmd.GoToRecord acForm, Forms!mainformname!subformname.Form, acNewRecord
 
S

Stuart McCall

John W. Vinson said:
You could use code like:

DoCmd.GoToRecord acForm, Forms!mainformname!subformname.Form, acNewRecord

Hi John

That would need to be:

DoCmd.GoToRecord acForm, Forms!mainformname!subformname.Form.Name,
acNewRecord
 
J

John W. Vinson

Hi John

That would need to be:

DoCmd.GoToRecord acForm, Forms!mainformname!subformname.Form.Name,
acNewRecord

Knew I shoulda checked... thanks Stuart!
 

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