Hello, I'm not sure which function to use, either IIF or DLookUp function to show the summary of a column in a query on a form text box. The problem is that as soon as I put a date range into the query, the form errors out as soon as the form is run.. After I put the date ranges in, only my charts display the correct information. My code for the charts are SELECT [MYQUERYCOLUMNNAME], Count(*) AS [Count] FROM [MYQUERYNAME] GROUP BY [MYQUERYCOLUMNNAME]
If I take the date range out from my query, it shows everything for the entire database based on another code i was using.. i know there are two different control source codes I would need for referencing each of them, but I'm having trouble displaying the results from a date range to my text box.
-the date range will never show a blank result
I was thinking IIF for comparing start/end times with my column, but dlookup may work as well..
so, which function would work the best for me? any ideas?
Thanks!