×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Empty Date returns current date!!! How to check for Empty values

Empty Date returns current date!!! How to check for Empty values

Empty Date returns current date!!! How to check for Empty values

(OP)
Hello,
Empty Date parameter returns current date, i need to validate the date entered,  how do i find out value is not entered.

I can not make them REQUIRED, there are 2 dates and 2nd one required if 1st one entered like that.

thanks,
KK

RE: Empty Date returns current date!!! How to check for Empty values

You could always give the first prompt a ludicrous default date that would never be used (say 1st Jan 1900) - then check for that and process as required

RE: Empty Date returns current date!!! How to check for Empty values

(OP)
Thanks alot. yes i thought..
But default value shows up in the screen that might confuse users..bec it is Option Date search field.

what i did is ..empty date field is returning Current Time,
So in my Start() method i check for  =Time ,If so then i assume user not entered any date. So right now its working
but i did not upload to system and check it.May be system Time and Input default time may be different, i am not sure!!

If user enters something then only that Date will come not Time ,So i am making use of that ..(but thr is a option where user can select timestamp!!!,if he did then i am gone:))

RE: Empty Date returns current date!!! How to check for Empty values

you can check this at the start methoda of the report if the date is blank ther then convert it string and assign blank value to it. I think dis is the way it will work out.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close