6ftAndClean
Programmer
I have a database which is to be used by 4 users. I intend setting things up so that there is one backend and 4 x frontends. Each frontend will have it's application name (seen in the main application titlebar) set by the following format: "<project name> - <user name>"
Since I have made it possible for each user to store preferences for how they view the frontend (details of which are stored in a "userPrefs" table) I would like the application to automatically detect which user it is dealing with. I know there are grown-up ways of interogating the OS to determine the logon name etc. but what I would like to do (because it seems like it should be a simple thing to do) is to just return the user name from the application title. What I can't figure out is how to access the application name via VBA.
Suggestions please.
Thanks,
Nick
PS I know this method sounds a little cranky and not v
robust/professional but the situation for which I am programming is also a little cranky and wierd and, on balance, this method seems like the best option although, if you have a better suggestion please suggest it!.
Since I have made it possible for each user to store preferences for how they view the frontend (details of which are stored in a "userPrefs" table) I would like the application to automatically detect which user it is dealing with. I know there are grown-up ways of interogating the OS to determine the logon name etc. but what I would like to do (because it seems like it should be a simple thing to do) is to just return the user name from the application title. What I can't figure out is how to access the application name via VBA.
Suggestions please.
Thanks,
Nick
PS I know this method sounds a little cranky and not v
robust/professional but the situation for which I am programming is also a little cranky and wierd and, on balance, this method seems like the best option although, if you have a better suggestion please suggest it!.