Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
If you can't
login and post questions or you are having trouble viewing forum posts:
Click Here
|
Callback
Support |
If you live in USA, UK, Canada, Australia or New
Zealand, you can leave us details on your question and request us to call you back and discuss
them with you personally (charges apply). |
Click Here
|
Buy Support
Incidents |
If you can't find your answer
in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us
private or confidential information: |
Click Here
|
|
Using Modified Date with Reports |
Author |
Message |
|
Posted : 2007-02-16 08:56:54 |
Hello,
I have set up an electronic whiteboard for work and every hour of the day, the excel whiteboard queries the QB database for any orders that have been entered and modified today. I am using the sp_report approach over the Select statement because it seems to be much faster. I also can't use MS Query because that is not available in a shared file. With all that said, the only orders that are returned are the orders that were entered today. It does not return the orders that were modified today.
My statement is:
sp_report SalesByCustomerDetail show TxnType, Memo, DueDate, Item, Quantity , PONumber, Amount, Account, RefNumber, SourceName, Date, Class parameters ModifiedDateMacro='Today', ReportDetailLevelFilter='AllExceptSummary', ReportPostingStatusFilter='Either' WHERE rowtype='DataRow'
Can you please tell me how to get the orders modified today, as well as the ones that were first entered today? I have also used DateFrom and DateTo with no success. I am using QB Enterprise Solutions 7 with QODBC 7.00.00.207. Thanks for your help!
Robin
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-02-16 10:53:41 |
If you're talking about Sales Orders, try:
Select Memo, DueDate, SalesOrderLineItemRefFullName, SalesOrderLineDesc, SalesOrderLineQuantity, PONumber, SalesOrderLineAmount, RefNumber, CustomerRefFullName, TxnDate, SalesOrderLineClassRefFullName from SalesOrderLine where TimeModified >= {fn TIMESTAMPADD(SQL_TSI_YEAR, 0, {fn CURDATE()})}
|
|
|
|
|
Posted : 2007-02-17 05:21:28 |
Thanks, Tom! Your suggestion worked! |
|
|
|
|