Hi All! I have a Retail App. that performs daily closing tasks everyday. The app is used as a Standalone at some locations and as a File Server at other locations. I have logic that disables other users from logging into the app. during the daily closing process. I simply log the current posting date to a control record at the beginning of the closing process and then clear it at the end. My only concern is if the user is in the middle of closing and there pc looses power or freezes up the user will not be able to log back into the system because of the flag in the control record.
When I check for this flag I do not know the users id because I'm doing this check as soon as they double click on the icon to run the app. I don't want them to have to enter there userid and pw and then get notified that they can't login right now because closing is in progress.
I want to establish another flag in the control record that uniquely defines that user's pc. So if the user who was performing the daily closing trys to log back in it will let them because of this unique flag. At the end of the closing process I would clear both these flags.
Question is, is there a Windows95 or SYS variable that is unique to the pc itself that I could use?
Hope you can help. Thanks!
Joe
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement