Code Comments
Programming Forum and web based access to our favorite programming groups.When adding a new record from my form, I pre-set my DateTimePicker's value t o System.DateTime.Today Since the "Today" value is used most of the time, the user doesn't need to select a date from the DateTimePicker, since the default is shown. My proble m is, if the user does not choose a value from the DateTimePicker (because using the default is good enough), then during database update, the date value is not saved to the database; while if user choose another value other then the default, the value can be saved to the database successfully. Is there a way to ensure the default value can be saved to the database?
Post Follow-up to this message"Clamara" <Clamara@discussions.microsoft.com> wrote in message news:0A91AA24-3B7A-4B84-9E52-FEE326239166@microsoft.com > When adding a new record from my form, I pre-set my DateTimePicker's > value to System.DateTime.Today -- <response type="generic" language="VB.Net"> This newsgroup is for users of Visual Basic version 6.0 and earlier and not the misleadingly named VB.Net or VB 200x. Solutions, and often even the questions, for one platform will be meaningless in the other. When VB.Net was released Microsoft created new newsgroups devoted to the new platform so that neither group of developers need wade through the clutter of unrelated topics. Look for newsgroups with the words "dotnet" or "vsnet" in their name. For the msnews.microsoft.com news server try these: microsoft.public.dotnet.general microsoft.public.dotnet.languages.vb </response>
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.