E
Emma
Hi I have a form which I would like only the Current User() information to
show up on I'm using the following code on the button:
Private Sub Reminders_Click()
On Error GoTo Err_Reminders_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.RunCommand acCmdSaveRecord
stDocName = "Reminder Form"
stLinkCriteria = "[Worker]=" & CurrentUser()
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Reminders_Click:
Exit Sub
Err_Reminders_Click:
MsgBox Err.Description
Resume Exit_Reminders_Click
End Sub
But I'm getting a syntax error (missing operator) in query expression
'[Worker] = Gertrude'
show up on I'm using the following code on the button:
Private Sub Reminders_Click()
On Error GoTo Err_Reminders_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.RunCommand acCmdSaveRecord
stDocName = "Reminder Form"
stLinkCriteria = "[Worker]=" & CurrentUser()
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Reminders_Click:
Exit Sub
Err_Reminders_Click:
MsgBox Err.Description
Resume Exit_Reminders_Click
End Sub
But I'm getting a syntax error (missing operator) in query expression
'[Worker] = Gertrude'