Show user id on a report

C

Chris

I'm using Access to create a report with data from a SQL database.

I've tried using SUSER_SNAME, but each time the result prints as #Name?
Also, CurrentUser simply returns 'Admin' every time since I'm not using the
Access security features.

I'm new to both Access and SQL. Any help greatly appreciated.

Steve
 
D

Duane Hookom

You create a new module in your MDB and paste the function into it. Then save
the module with a name like "modAPIs". This will make the function available
in control sources, queries, code,...
 

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