We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,878 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Where Condition in foxpro

hello!
i am currently working on a simple file make application , this application read data from foxpro .dbf file , i want to get records between two dates , from date and to date , the invoice date field name is fl02 here is my query but this is not working properly and not showing any record.

select * from TRANS.DBF where fl02 >= '8/1/2012' and fl02<= '8/31/2012'

i this there is nothing wrong with it if i run it in mssql , but may be there is some thing not proper in this query for foxpro , please guide me.

Regards

3
Contributors
2
Replies
3 Days
Discussion Span
8 Months Ago
Last Updated
3
Views
M.Waqas Aslam
Master Poster
743 posts since Aug 2011
Reputation Points: 50
Solved Threads: 120
Skill Endorsements: 2

I don't think you use single quotes to delimit dates in FoxPro--IIRC, you need to use curly braces, e.g., {8/1/2012}.

gusano79
Practically a Master Poster
671 posts since May 2004
Reputation Points: 193
Solved Threads: 107
Skill Endorsements: 6

This is not the right format you used for date. You should use like {^YYYY/MM/DD}. This will work.

neeraj.shorey
Newbie Poster
1 post since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0908 seconds using 2.66MB