Dec 7, 2004 #1 Whodini Technical User Nov 22, 2004 2 US What date expression would I use to create a SQL query to search a table from "Yesterday"?
Dec 7, 2004 #2 mp9 Programmer Sep 27, 2002 1,379 GB Something like: SELECT MyDateField FROM MyTable WHERE MyDateField=Date()-1; Hope this is helpful. http://www22.brinkster.com/accessory/ Upvote 0 Downvote
Something like: SELECT MyDateField FROM MyTable WHERE MyDateField=Date()-1; Hope this is helpful. http://www22.brinkster.com/accessory/
Dec 7, 2004 Thread starter #3 Whodini Technical User Nov 22, 2004 2 US mp9, Thank you for your quick response. I am still having problems. I tried your suggestion in the following expression: STOREMST.STORE NOT IN (Select storenum from XBR_STORE where transdate = date()-1; and XBR_STORE.AS_SALES_CT <> 0) I get an error: 'Date' is not a recognized function name. What could I be doing wrong? Upvote 0 Downvote
mp9, Thank you for your quick response. I am still having problems. I tried your suggestion in the following expression: STOREMST.STORE NOT IN (Select storenum from XBR_STORE where transdate = date()-1; and XBR_STORE.AS_SALES_CT <> 0) I get an error: 'Date' is not a recognized function name. What could I be doing wrong?
Dec 7, 2004 #4 mp9 Programmer Sep 27, 2002 1,379 GB Is this in the Expresseion Builder or in the SQL view of a query? http://www22.brinkster.com/accessory/ Upvote 0 Downvote
Is this in the Expresseion Builder or in the SQL view of a query? http://www22.brinkster.com/accessory/
Dec 8, 2004 #5 PHV MIS Nov 8, 2002 53,708 FR What about this ? where CLng(transdate) = CLng(Now())-1 and XBR_STORE.AS_SALES_CT <> 0 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
What about this ? where CLng(transdate) = CLng(Now())-1 and XBR_STORE.AS_SALES_CT <> 0 Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244