Opening sub form

G

gr

Hello!
I have Form1 which contains sfrmA
I want to open Form1 and make sfrmA to load just for
Adding new records. So either I don't want all the sub
form's records to be shown or that the cursor is placed on
the last record of sfrmA. Is this possible?

Thanks in advance,
gr
 
S

Sandra Daigle

In the open event of the form you can add a statement to go to a new record
on the subform:

Me.sfrmMySub.SetFocus
DoCmd.GoToRecord , , acNewRec

Where sfrmMySub is the name of your subform control.
 
G

gr

Thx I accomplished exactly what I wanted by setting the
DataEntry Form Property = True

Thank you
-----Original Message-----
In the open event of the form you can add a statement to go to a new record
on the subform:

Me.sfrmMySub.SetFocus
DoCmd.GoToRecord , , acNewRec

Where sfrmMySub is the name of your subform control.

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

Hello!
I have Form1 which contains sfrmA
I want to open Form1 and make sfrmA to load just for
Adding new records. So either I don't want all the sub
form's records to be shown or that the cursor is placed on
the last record of sfrmA. Is this possible?

Thanks in advance,
gr


.
 

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