NJudson
Who farted?
- Local time
- Today, 11:17
- Joined
- Feb 14, 2002
- Messages
- 297
I know this probably seems like a trivial problem but I've been working on it for some time and can't get it right. I have a form with 2 drop down boxes cboFromDate and cboToDate. I'm trying to run a query that will produce results between those 2 dates and the query runs but does not display any results. I can get query to work for a single date or all dates but not the date range. Here is what I have written for my date range query:
Me.ListTotals.RowSource = "SELECT TOP 25 [Totals].[Cell-ID], [Totals].[FBER Drop Attempts/Call Volume], " & _
"[Totals].[Digital Call-Volume], [Totals].[FBER-Drop-Attempts], [Totals].[Switch], [Totals].[Date] " & _
"FROM Totals " & _
"WHERE ((([Totals].[FBER Drop Attempts/Call Volume])>=0.025) And " & _
"(([Totals].[Digital Call-Volume])>=25)) " & _
"And (([Totals].[Date]= BETWEEN(cboFromDate.Value AND cboToDate.Value))) " & _
"ORDER BY [Totals].[FBER Drop Attempts/Call Volume] DESC;"
Me.Refresh
If where syntax problem then I would get an error. Right? Well, I don't get an error. It runs the query straight through but doesn't produce any data. I hope someone can see what my problem is. Thanks.
Me.ListTotals.RowSource = "SELECT TOP 25 [Totals].[Cell-ID], [Totals].[FBER Drop Attempts/Call Volume], " & _
"[Totals].[Digital Call-Volume], [Totals].[FBER-Drop-Attempts], [Totals].[Switch], [Totals].[Date] " & _
"FROM Totals " & _
"WHERE ((([Totals].[FBER Drop Attempts/Call Volume])>=0.025) And " & _
"(([Totals].[Digital Call-Volume])>=25)) " & _
"And (([Totals].[Date]= BETWEEN(cboFromDate.Value AND cboToDate.Value))) " & _
"ORDER BY [Totals].[FBER Drop Attempts/Call Volume] DESC;"
Me.Refresh
If where syntax problem then I would get an error. Right? Well, I don't get an error. It runs the query straight through but doesn't produce any data. I hope someone can see what my problem is. Thanks.