when form opens go to a new record

  • Thread starter Thread starter Gary
  • Start date Start date
G

Gary

Hi i'm using a form purely for adding records.
So when it's open i want it to insert a new record, i'm assuming the
best way for me to do this would be an 'on open' event.

does anyone know what vba code works in a simmilar way to the insert
record button on the record navigation bar?

thanks,

Gary.
 
Gary said:
Hi i'm using a form purely for adding records.
So when it's open i want it to insert a new record, i'm assuming the
best way for me to do this would be an 'on open' event.

does anyone know what vba code works in a simmilar way to the insert
record button on the record navigation bar?

thanks,

Gary.

Set the DataEntry property to Yes. That is exactly what it is for.
 
There are many ways to get done what you want: properties, event code,
command buttons. The simplest is to open the form in design mode and
set the Data Entry property to Yes. That will cause any data entered
to be added to the underlying table when you navigate off the current
record.

HTH
 

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