Have form open to accept a new record

  • Thread starter Thread starter rpbsr
  • Start date Start date
R

rpbsr

I have a main form and a main form with subform. I would like these to open
ready to receive data, rather than populated with data from the first record.
I appreciate any help.

Thanks,
Robert
 
Use the Data Mode argument of the OpenForm method and set it to acFormAdd.
 
Dave,
This sounds like a VBA solution, which I'm not very good at (but can
follow). Can you post an example? Does this use the OnOpen event?
 
If you prefer to use a macro, use the OpenForm Action and select Add in the
Data Mode box. It requires nothing in any form event.
 
The forms I'm referring to are opened from my switchboard, which use the
following OnClick events (=HandleButtonClick(number)) to open the form(s). It
sounds like you are suggesting I have the OnClick fire a macro to open the
form in Add Data Mode. I can see how this would work. Is my understanding
correct and will it adversely affect the Switchboard Table?
 
You don't even have to do that.
If you are using the Switchboard, Open the Switchboard manager and you can
select an option to open a form in add mode.
 
Perfect, thanks Dave!

Klatuu said:
You don't even have to do that.
If you are using the Switchboard, Open the Switchboard manager and you can
select an option to open a form in add mode.
 

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

Back
Top