Can I get the current User ID?

R

rmiller1985

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
 
G

Graeme Richardson

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

Cheers, Graeme
 
Top