I keep on gettin this error:
Run-time Error 20515.
Error in Formula <Record_Selction>.
'{References.rDATE} >= 11/1/2002 and {References.rDATE} <= 11/26/2002 and {References.Cname} = 'THE POMEROY COLLECTION, LTD"
A date is required here.
This is the code I'm using within a command button, all variables are declared; and even used the DATE(" & mFECHA# & "
instead.
If Option3.Value = True Then
mFECHA1 = DTPicker1.Value
mFECHA2 = DTPicker2.Value
mCLTE = dbcMedium.Text
With CrystalReport1
mselection = "{References.rDATE} >= " & CDate(mFECHA1) & " and {References.rDATE} <= " & CDate(mFECHA2) & " and {References.Cname} = '" & mCLTE & "'"
.SelectionFormula = mselection
.ReportTitle = _
"Referencias Por Consignatario " & " de " & _
DTPicker1.Value & " a " & DTPicker2.Value
Call RepWindow
.Action = 1
End With
and if i change the syntax it displays all the records instead of just the requested.
Would someone help me find what the mistake I'm doing here?
I'd really appreciate it.
Thanx!
Max35
Run-time Error 20515.
Error in Formula <Record_Selction>.
'{References.rDATE} >= 11/1/2002 and {References.rDATE} <= 11/26/2002 and {References.Cname} = 'THE POMEROY COLLECTION, LTD"
A date is required here.
This is the code I'm using within a command button, all variables are declared; and even used the DATE(" & mFECHA# & "
If Option3.Value = True Then
mFECHA1 = DTPicker1.Value
mFECHA2 = DTPicker2.Value
mCLTE = dbcMedium.Text
With CrystalReport1
mselection = "{References.rDATE} >= " & CDate(mFECHA1) & " and {References.rDATE} <= " & CDate(mFECHA2) & " and {References.Cname} = '" & mCLTE & "'"
.SelectionFormula = mselection
.ReportTitle = _
"Referencias Por Consignatario " & " de " & _
DTPicker1.Value & " a " & DTPicker2.Value
Call RepWindow
.Action = 1
End With
and if i change the syntax it displays all the records instead of just the requested.
Would someone help me find what the mistake I'm doing here?
I'd really appreciate it.
Thanx!
Max35