Capturing Global variable values

L

Larry06Green

How do I write global variable values to a table. I have the following module
which captures the network user id and computername when they log into my
database.

Option Compare Database
Global racf As String
Global wkstation As String

Function GetName()
racf = Environ("username")
wkstation = Environ("computername")
End Function
 
A

AkAlan via AccessMonster.com

This depends on whether you are updating the table or appending it. If you
are updating the try a sql UPDATE command and if you are appending the table
try an INSERT INTO command.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top