I have a form which is on a shared drive and have about 5 users using it.
There is a combo box in one of the form which is basically a list of their names.
When they are filling a form they need to select who's doing the review.
I was wondering if it's possible to default the value to a previous selection.
To be clear here's what I would like to do:
On the first form which is "Front page" they have a button to open the form, generate a report or have instruction.
On the second form which is "Review form" they have a combo box where they select their name for EACH new record.
I would like to add a new combo box on the "Front Page", so they can select their name ONCE and this combo box would serve as the default for the "Review form" which is where the actual combo box is.
Any help with this?
More information about a possible other way to achive this:
I have a module that I use to record the "UserID" from their computer, would something like this work to set the default?
The module is like this:
Code:
Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Function fOSUserName() As String
' Returns the network login name
Dim lngLen As Long, lngX As Long
Dim strUserName As String
strUserName = String$(254, 0)
lngLen = 255
lngX = apiGetUserName(strUserName, lngLen)
If lngX <> 0 Then
fOSUserName = Left$(strUserName, lngLen - 1)
Else
fOSUserName = ""
End If
End Function
and I have a field called "UserID" on my form which records the UserID.
The list of users is in a table called "UserTable" with an ID and their name. Could I add a row to match it with their userID?