Just a quick question...I'm running an MS Access 2007 db that tracks appointments in a single table. Date and time are entered as separate fields in short date (mm/dd/yyyy) and short time (hh:mm) format. I've been running queries by date alone, which has been working, but there are times when I have to run queries based on times as well. (e.g. return all apointments that occurred after 1:00 PM on 12/15/2009 and before 1:00 PM on 12/22/2009). I need the query to work whether time is input as a search parameter or not, and I've been playing around with IIF statements involving the possible combinations of start/end dates and times, but it's getting WAY more complicated than I think it needs to be. Plus, I haven't gotten it to work so far.
It occurs to me that the easiest thing to do would be to convert the values in both the date and time fields into a single date/time field, then base the IIF function on this new value. There's got to be a function that lets you do this, I just haven't figured out what it is.
Any help?
JS
It occurs to me that the easiest thing to do would be to convert the values in both the date and time fields into a single date/time field, then base the IIF function on this new value. There's got to be a function that lets you do this, I just haven't figured out what it is.
Any help?
JS
Comment