Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

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

Forum : Current DateSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 Current Date 
 Author   Message 
  Gary 
  
 Group: Members 
 Posts: 30 
 Joined: 2006-04-08 
 Profile
 Posted : 2008-05-06 00:02:55

I am using Access.

I want a  query to run based on the current system date.

I have tried to get this to work based on your examples and cant figure out what is wrong. 

Please advise.

Thanks

Select * from SalesOrderLine Unoptimized where timemodified >= {fn Curdate()}

Expected lexical element not found: <identifier> (#11015)

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-05-06 07:54:59

This will display modified rows from 15 minutes ago:

Select * from SalesOrderLine Unoptimized
where timemodified >= {fn TIMESTAMPADD(SQL_TSI_MINUTE, -15, {fn NOW()})}

While this will display modifed rows from today:

Select * from SalesOrderLine Unoptimized
where timemodified >= {fn CONVERT({fn Curdate()}, SQL_TIMESTAMP)}

See: How are dates formatted in SQL queries when using the QuickBooks generated time stamps? for more.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to