Re: Validating a Date in a Text box by Tom
Tom
Tue Feb 07 15:07:27 CST 2006
Yes Cindy, this is a Multi purpose box. after data is entered depending on
the code they use, i will write it to a table.
but if it comes to a date i really need them to enter it in mm/dd/yyyy so
ive tried to set the format of the box to "d" as mentioned before if a
certain code was used.
"Cindy Winegarden" wrote:
> Hi Tom,
>
> I'm confused. Your users are entering a date into a textbox. Are you storing
> the date as characters or as a date data type? Can they also enter other
> things in this textbox such as names or other values that are all digits?
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy_winegarden@msn.com www.cindywinegarden.com
>
>
> "Tom" <Tom@discussions.microsoft.com> wrote in message
> news:2049B19B-49FA-4FA1-AB79-4632B2A46856@microsoft.com...
> > hi again, i am looking for a simple way to Validate the data entered into
> > a
> > textbox is a valid date.
> >
> > if they enter 010106 it should stop them and make them enter 01012006
> > if they enter 01010000 it should evaluate that to be wrong also. is this
> > possible?
> > well i know it is, currently i have set century on. My biggest problem is,
> > this box is used for mostly char entry, so id like to keep it that way.
> > i thought that using this.value = ctod(' / / ') would do it but no such
> > luck.
> >
> > thanks agaiin.
>
>
>