thisisntwally
CE&A
- Local time
- Today, 09:44
- Joined
- Jun 27, 2007
- Messages
- 246
i've declared a public function as so
thinking that i was clever, i set the control source on my form to =getwinusername, and boy oh boy - i open the form and bam theres my login name. still riding on cloud nine i went to save my record.
After checking the table i realized my idiocy - and changed my control source back to the tablefield it was supposed to be...
that mistake acknowledged - ive tried setting the default value to =getuser...
and that fails to display anything when i open the form (even if it somehow records, which i doubt, i'd like users to see the majic)
any ideas?
Code:
Public Function GetWinUserName()
GetWinUserName = Environ("UserName")
End Function
thinking that i was clever, i set the control source on my form to =getwinusername, and boy oh boy - i open the form and bam theres my login name. still riding on cloud nine i went to save my record.
After checking the table i realized my idiocy - and changed my control source back to the tablefield it was supposed to be...
that mistake acknowledged - ive tried setting the default value to =getuser...
and that fails to display anything when i open the form (even if it somehow records, which i doubt, i'd like users to see the majic)
any ideas?