Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: String to date +/- 5 days??
Author
Message
jbalbo
Senior Member
Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Topic: String to date +/- 5 days??
Posted: 04 Oct 2012 at 8:32am
HI
I have a string variable on a table as '12/01/2012'
I need to use it in record selection to compare to a date field +/- 5 days
something like
{?Pm-@Admit+90} in cdate({USER_DEFINED_DATA.CAD6}-5) to cdate({USER_DEFINED_DATA.CAD6}+5)
but this isn't working....
Thanks
Joe
IP Logged
jbalbo
Senior Member
Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Posted: 04 Oct 2012 at 8:44am
Datevalue doesnt work:(
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 04 Oct 2012 at 8:55am
is yoyur string variable the
{
?pm-@admit+90
}
or is it the actual field
{USER_DEFINED_DATA.CAD6}
IP Logged
jbalbo
Senior Member
Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Posted: 04 Oct 2012 at 9:01am
its {USER_DEFINED_DATA.CAD6}
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 04 Oct 2012 at 9:04am
Move your parenths
{?Pm-@Admit+90} in cdate({USER_DEFINED_DATA.CAD6}
)
-5 to cdate({USER_DEFINED_DATA.CAD6}
)
+5
IP Logged
jbalbo
Senior Member
Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Posted: 04 Oct 2012 at 9:08am
wow that was much easier than what I was working on trying to parse the string etc....lol
Thanks so much...
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
BAEZL
© 2004-2026 Brian Bischof. All Rights Reserved.