- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
I have been making some adjustments to our company drawing template.
One thing which I have become fond of is the idea of having an iLogic form with many useful links to file locations et cetera.
I am currently making one of such shortcuts; this one for the user's scanner file.
The location of the file is as follows, using my name, Jonathan Fowler, as an example:
\\HDSDC02\Scanner\Jonathan.Fowler
I have come up with the following code:
MyName = ? ScannerLocation = ("\\HDSDC02\Scanner\" & Left(MyName, InStrRev(MyName, " ")-1) & "." & Right(MyName, Len(MyName)-InStrRev(MyName, " "))) ThisDoc.Launch(ScannerLocation)
It works, however, the MyName variable has no value.
I need a way to set this variable to be my Windows login name (Jonathan Fowler).
I have tried
MyName = Environ("Username")
and
MyName = ThisApplication.UserName
, but both of these result in an abbreviated form of the user's name. In my case, it is jfowler.
If you know any way of referencing the Window's login name using iLogic, I would be very grateful if you could share it.
Many thanks,
[MyName]
Solved! Go to Solution.