Ok...so this is gona be a hard one to explain...BUT DONT LEAVE 
So I have a line:
and although the code is a lot more complex than this, i will just show you the part of it that is called (in this exact situation...when this elseif statement is called.)
So I have fields "Name" and "Date"...Name is just a string, and Date is formatted as "date/time"...
SO I would like my report to be opened with parameters: Name = "Paul" Date = 7/17/2009 and there is one record that fits that...
I think that the issue comes from the Date field being formatted as it is...if it was a string and I were looking for "7/17/2009", then it would be easier...but i am not sure if it is able to match up the date...?
anyways, have a look at the code, and let me know if you can find the source of the error
if i debug it, it says that criteria = "Name = 'Paul' And Date = 7/17/2009"
which is exactly what i want...not sure whats happening...Works fine if all that criteria = is "Name = 'Paul'", it is the Date that is messing it up..
let me know if you have any suggestions, thanks!!

So I have a line:
Code:
DoCmd.OpenReport "rptsql", acViewReport, , criteria
So I have fields "Name" and "Date"...Name is just a string, and Date is formatted as "date/time"...
SO I would like my report to be opened with parameters: Name = "Paul" Date = 7/17/2009 and there is one record that fits that...
I think that the issue comes from the Date field being formatted as it is...if it was a string and I were looking for "7/17/2009", then it would be easier...but i am not sure if it is able to match up the date...?
anyways, have a look at the code, and let me know if you can find the source of the error

Code:
ElseIf IsNull(Me.Text_ProjID) Then
Dim val As String
val = CDate(Me.ListBox1.Value)
criteria = "Name = '" & Me.Text_Name.Column(1) & "' And Date = " & val
DoCmd.OpenReport "rptsql", acViewReport, , criteria
which is exactly what i want...not sure whats happening...Works fine if all that criteria = is "Name = 'Paul'", it is the Date that is messing it up..
let me know if you have any suggestions, thanks!!