Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding Controls to ADO Recordset
Message
From
24/05/2001 09:49:03
 
 
To
22/05/2001 22:53:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510179
Message ID:
00510866
Views:
17
>Hang on...
>
>It works fine for numbers but not dates!
>
>Since SQL Server does not have a date field type (only a datetime), the ADO field is a datetime and does not honor the '99/99/9999' Input Mask setting. It is showing the time portion as well.
>

I don't use the controlsource for situations like this, I 'custom' bind the control by putting code in the refresh and valid methods:

Refresh:
THIS.Value = TTOD(THISFORM.oRS.Fields("myDateTime").Value)

Valid:
THISFORM.oRS.Fields("myDateTime").Value = DTOT(THIS.Value)
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform