N
Nick
Hi,
I'm trying to understand how I can use a value (date)
from my combo box, use it as a criteria in my query for
two different date fields and then use the this query in
a ADO.RECORDSET to pull the data.
Currently (because I couldn't get the above piece to
work) I have the code below that works but I'm pulling
all records and I have to hard code the query without any
criteria. I tried FILTER but it didn't work either. I
tried replacing the SQL stmt with a "sel query" and that
didn't work (gave me a run time error)...
-------------------------------------------------------
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = CurrentProject.AccessConnection
Set rs = New ADODB.Recordset
rs.Open "Select * from tblAllAuction order by RecordID,
c_record", cn
Do While rs.EOF = False
I'm trying to understand how I can use a value (date)
from my combo box, use it as a criteria in my query for
two different date fields and then use the this query in
a ADO.RECORDSET to pull the data.
Currently (because I couldn't get the above piece to
work) I have the code below that works but I'm pulling
all records and I have to hard code the query without any
criteria. I tried FILTER but it didn't work either. I
tried replacing the SQL stmt with a "sel query" and that
didn't work (gave me a run time error)...
-------------------------------------------------------
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = CurrentProject.AccessConnection
Set rs = New ADODB.Recordset
rs.Open "Select * from tblAllAuction order by RecordID,
c_record", cn
Do While rs.EOF = False