Version 2000-2003
1. Go to the Database Window and to the Modules area
2. Click on NEW Module
3. Paste the code in after the Option Compare Database
4. Save the module with a name like modAPI
5. To put the user name in the text box - in the form's On Load event you
can use
Me.YourTextBoxNameHere = fOSUsername
Version 2007
1. Go to the CREATE tab on the ribbon
2. On the OTHER group at the end of the CREATE tab, click the MACRO dropdown
and select MODULE.
3. Paste the code in after the Option Compare Database
4. Save the module with a name like modAPI
5. To put the user name in the text box - in the form's On Load event you
can use
Me.YourTextBoxNameHere = fOSUsername
--
Thanks,
Bob Larson
Access MVP
Administrator, Access World Forums
Utter Access VIP
Free Access Tutorials and Resources:
http://www.btabdevelopment.com
I'm sorry, I'm new to Access. How do I implement the code?