Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a macro on a record save

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
0
0
GB
Hi all.
I want torun a macro to create a new id (first 3 letters of the surname + 001 etc any ideas on best way to do that welcome!!)

My big problem is how do i run the vba function when I save a record. I keep having to focus to the id field on the form which disrupts things!!

ANy ideas as I know this is really simple!

}...the bane of my life!
 
Does it have to be a macro? A little code in the before update event of the form would work quite nicely.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top