D
doodle
greetings from ky
i have coded my forms and reports so that when a user opens them it
creates a log in a user table to tell me how often they are used.
The result of WhosOn() could be something like this:
ADRAUGHN-2045;PAURAYBURN-1513;SPINDRM-983;
I need to find a way to code this so that it will remove the hyphen and
all to the right of it. So that the above would be this:
ADRAUGHN,PAURAYBURN,SPINDRM
HELP!!!! Here's my code:
-doodle
Private Sub Form_Open(Cancel As Integer)
On Error GoTo tagError
Dim strSQL As String
DoCmd.SetWarnings False
strSQL = "Insert INTO tblSys_TrackUser(User,UserObject)" & _
"Values ('" & WhosOn() & "','" & Me.Name & "')"
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
DoCmd.Restore
Exit Sub
tagError:
MsgBox Err.Description
End Sub
i have coded my forms and reports so that when a user opens them it
creates a log in a user table to tell me how often they are used.
The result of WhosOn() could be something like this:
ADRAUGHN-2045;PAURAYBURN-1513;SPINDRM-983;
I need to find a way to code this so that it will remove the hyphen and
all to the right of it. So that the above would be this:
ADRAUGHN,PAURAYBURN,SPINDRM
HELP!!!! Here's my code:
-doodle
Private Sub Form_Open(Cancel As Integer)
On Error GoTo tagError
Dim strSQL As String
DoCmd.SetWarnings False
strSQL = "Insert INTO tblSys_TrackUser(User,UserObject)" & _
"Values ('" & WhosOn() & "','" & Me.Name & "')"
DoCmd.RunSQL strSQL
DoCmd.SetWarnings True
DoCmd.Restore
Exit Sub
tagError:
MsgBox Err.Description
End Sub