Hi folks,
I built this code to open a form based on 4 criterias but I have a problem in this line :
When I do just one condition (cond for example) it works the message error is, I think it's a syntax error ..
Full code :
Thanks in advance
I built this code to open a form based on 4 criterias but I have a problem in this line :
Code:
DoCmd.OpenForm "frm_initiativesDetails", , , cond, cond1, cond2, cond3
When I do just one condition (cond for example) it works the message error is, I think it's a syntax error ..
ERROR 13: Type mismatch
Full code :
Code:
Private Sub lboActuals_DblClick(Cancel As Integer)
Dim cond As String
Dim cond1 As String
Dim cond2 As String
Dim cond3 As String
cond = "idInitiative = " & Me.lboActuals.Column(0)
cond1 = "typeActual = " & Me.lboActuals.Column(9)
cond2 = "monthActual_tbl_actualComment = " & Me.lboActuals.Column(8)
cond3 = "monthActual = " & Me.lboActuals.Column(8)
DoCmd.OpenForm "frm_initiativesDetails", , , cond, cond1, cond2, cond3
End Sub
Thanks in advance