Computing.Net > Forums > Programming > C#Need help ;date selection formula

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C#Need help ;date selection formula

Reply to Message Icon

Name: Salmaan
Date: August 20, 2003 at 14:44:47 Pacific
OS: Win XP Prof.
CPU/Ram: P4, 256 MB
Comment:

Hi,
I am using MS VS.Net 2003 and C#. I am trying to setup a selection formula for date using crsytal report. I know that we have to format the date criteria, but I have no clue how to do it. I would really appreciate if anybody can give me some code example on how to setup the selection formula for date.
I am trying to lookup records that match the date criteria..lets say for all records posted in the last 7 days etc.
Anxiously waiting for a reply.
Salmaan



Sponsored Link
Ads by Google

Response Number 1
Name: Sord
Date: August 20, 2003 at 22:29:47 Pacific
Reply:

Well I don't have any C# experience or Crystal
Reports, however if your data is not in normal order,
then just make a for loop and do something like
if (datadate >= currentdate - 7)
or if it is in order by date then just do a for loop and
once you hit one that isn't the correct date, break
from the loop.


0

Response Number 2
Name: Salmaan
Date: August 21, 2003 at 06:44:06 Pacific
Reply:

Hi,
Thank you for your response, but here when I am using Crystal Report for VS.NET I have to use a specific crystal syntax which by the way is different for each programming language i.e., VB, C# etc.
Therefore, I need help in figuring out how to code the selection criteria for the date field. I can pretty much do it for any other type of fields.
Thanks for your esponse though.
Salmaan


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C#Need help ;date selection formula

Need help with C programming www.computing.net/answers/programming/need-help-with-c-programming/6970.html

C++ - need FOR loop help www.computing.net/answers/programming/c-need-for-loop-help/9209.html

Need help with C++? www.computing.net/answers/programming/need-help-with-c/4642.html