Table and Macro Access 2002

L

Lazaros

How can a macro run only one time, when a new record add
to a table?

Database: Acer
Table: tblFim
Fields = Tok_ID, Title, Ahor_ID
Macro: mcrnew

Any help would be greatly appreciated.

Many thanks...
 
J

John Vinson

How can a macro run only one time, when a new record add
to a table?

Database: Acer
Table: tblFim
Fields = Tok_ID, Title, Ahor_ID
Macro: mcrnew

Any help would be greatly appreciated.

Many thanks...

Tables have no useable events. I'd suggest using a Form to add the
records; the Form has a BeforeInsert event in which you can put the
macro (or, better, convert the macro to VBA and use an [Event
Procedure].

As a rule, table datasheets should be used ONLY for design and
debugging - they have very limited capabilities!
 

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