S
sniki
Hi,
I have a form called "Overview per Course", displaying several employees for
every course. I want to be able to click on an employee and then get up the
form "Course Overview per Employee", displaying all the courses that employee
has taken.
I have the following event procedure under "On Dbl Click"
Private Sub Employee_DblClick(Cancel As Integer)
Dim stDocNAme As String
stDocNAme = "Course Overview per Employee"
DoCmd.OpenForm stDocNAme, acNormal, , "[Employee]=" & [Employee]
End Sub
However, when doubleclicking on the Employee field I get the error message:
Run-time error '3075':
Syntax error (missing operator) in query expression '"[Employee]=A'
(under A the name of the employee is mentioned)
Could anyone help me, I don't know what I am doing wrong...
I have a form called "Overview per Course", displaying several employees for
every course. I want to be able to click on an employee and then get up the
form "Course Overview per Employee", displaying all the courses that employee
has taken.
I have the following event procedure under "On Dbl Click"
Private Sub Employee_DblClick(Cancel As Integer)
Dim stDocNAme As String
stDocNAme = "Course Overview per Employee"
DoCmd.OpenForm stDocNAme, acNormal, , "[Employee]=" & [Employee]
End Sub
However, when doubleclicking on the Employee field I get the error message:
Run-time error '3075':
Syntax error (missing operator) in query expression '"[Employee]=A'
(under A the name of the employee is mentioned)
Could anyone help me, I don't know what I am doing wrong...