Thanks for the information,
How do I do to write code?
To get started, open your database window to the "Modules" tab and
click the New Module button.
To learn how to write code takes far more than a newsgroup message can
cover, particularly in a different language than your usual. I would
suggest purchasing a book on VBA programming. My colleague John
Viescas has written a good one which may have been translated, and
there are several others.
John W. Vinson[MVP]