Microsoft
Software
Hardware
Network
Question : how to pull week day and time from a query
Hi,
I have a query that the date range is from 1/1/2010 to 4/1/2010, how do I only pull that all dates are Tuesday and Thursday? also I have the time from 8:30:00 AM to 3:00:00 PM, how do I only pull the time after 12:00:00 PM? below is my query
SELECT Event_Pleading.PDCASENUM, Event_Pleading.PDRIN, Event_Pleading.PDDOCKET, Child.CALENDAR, Event_Pleading.PDFIRSTCRTD
ATE, Event_Pleading.PDFIRSTCRTT
IME
FROM Child INNER JOIN Event_Pleading ON (Child.CHDOCKET = Event_Pleading.PDDOCKET) AND (Child.CHCASENUM = Event_Pleading.PDCASENUM)
WHERE (((Event_Pleading.PDFIRSTC
RTDATE) Between #1/1/2010# And #4/1/2010#))
ORDER BY Event_Pleading.PDFIRSTCRTT
IME;
Thanks
Answer : how to pull week day and time from a query
try this
WHERE ((DateValue([PDFIRSTCRTDAT
E]) Between #1/1/2010# And #4/1/2010#) and (timeValue([PDFIRSTCRTDATE
]) Between #8:30:00 AM# And #3:00:00 PM#) And weekday([PDFIRSTCRTDATE]) in (3,5))
Random Solutions
Rounding question
Fire an update event to a form's controls when lookup table is modified
Slider Control MSaccess on update
Can't copy mscal.ocx file in Windows\system32
VBScript add sheets to workbook loop
Two DHCP Servers on one network
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.
Add outlook task item using MS Access form
Replication failed. The search key was not found in any record.
Error 'TCP/IP must be confirgured' when installing windows 2003 server as a first domain controller