Uses of code in modules

  • Thread starter Thread starter Benny
  • Start date Start date
B

Benny

Hallo,

In a database I have several forms with a textbox linked to Fields
(Hyperlink) with an e-mailadress.

Now I want to check of the user typed an vallid e-mailadres (ie with an @
and a '.' somewhere afther the @, this code I've allready written) now I
place this code in every form in the TextBox_Exit-event. Is there no
solution to put this code in a module once, so I can reuse it on every from
where needed ? An other reasen is that I've written user-functions that I
will reuse in several formscode.

Thanks in advance,

Benny
 
Benny,

Place your code as a Sub in a standard more, and then make your events run a
single line of code:

Call Sub_Name

HTH,
Nikos
 
Thanks a lot !

Benny

Nikos Yannacopoulos said:
Benny,

Place your code as a Sub in a standard more, and then make your events run a
single line of code:

Call Sub_Name

HTH,
Nikos
 
Back
Top