Call a custom function as you would any other function. For instance, you
can use, say, the click event of a command button to add the current date to
a date field using the Date function:
Me.DateField = Date
Similarly, you can call the custom function described in the link:
Me.NT_Name = fOSUserName
As for learning about VBA, there are some online references. Check the
Access Basics tutorial at this link:
http://allenbrowne.com/tips.html
In particular, Section 2 of the tutorial discusses modules and introduces
VBA code, but there's lots of good stuff in the rest of the tutorial. There
is also lots of stuff on that page besides the tutorial, and there is a link
to a collection of links on the right side of the page.
"AndrewB" <(E-Mail Removed)> wrote in message
news:CB5AE162-369F-4418-9552-(E-Mail Removed)...
> There is a post & answers: Subject: Capture NT username for form *
> 6/2/2005
> 8:25 AM PST
> ...That asks exactly what I need:
> In my Access Database I would like to pull the NT Username and store the
> username (their network login name) in a field on the record the user is
> entering or modifying. Unfortunately, I do not know VB at all. I can get
> as
> far as copying the VB to a new module in Access but I do not know how to
> call
> up the VB in a text box, table, or form and make it work for me. I really
> need step by step instructions – But who has time for that??? Any
> specific
> instructions that could be passed my way would be GREATLY appreciated.
>
> Thanks so much,
>
> --
> AndrewB.