funwithaccess
Registered User.
- Local time
- Today, 00:35
- Joined
- Sep 5, 2013
- Messages
- 80
Hi,
I am having a difficult time figuring out how to have a table add a new record that includes the Windows username of the user that clicks the button on my form. The function is in place that pulls the Windows username:
I then call the function during the button click by simply adding getWinUser. Unfortunately, all that occurs is that the same record gets updated instead of creating a new record.
Any advice?
Nate
I am having a difficult time figuring out how to have a table add a new record that includes the Windows username of the user that clicks the button on my form. The function is in place that pulls the Windows username:
Code:
Public Function getWinUser() As String
getWinUser = Environ("UserName")
End Function
I then call the function during the button click by simply adding getWinUser. Unfortunately, all that occurs is that the same record gets updated instead of creating a new record.
Any advice?
Nate