Can I get the current User ID?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm trying to figure out how to determine the current User ID. I thought
I'd be able to get it from the CurrentProject.connection.ConnectionString;
I've found code that will allow me to set the UserID, but how do I get it?

My specific requirement is to hide certain fields on a form if the current
user isn't Admin, and I figured getting the current User ID would be the
easiest way, but I'll certainly consider any other suggestions!

Thanks,
Rich
 
Hi, the function CurrentUser() returns the name of the user.

Cheers, Graeme
 

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

Back
Top