|
-
Jun 26th, 2009, 11:40 AM
#5
Fanatic Member
Re: UpDownNumber or DataTime save as Null
You can check for the default value - so if the value of UpDownNumber1 = 0, then pass null to your update.
A dateTimePicker's default value should be "1/1/0001", not the current date, unless you set it to that explicitly. I'd check for it. You can also keep a private field that changes to true if the user makes a change, which means the default value no longer applies.
Warren Ayen
Senior C# Developer
DLS Software Studios ( http://www.dlssoftwarestudios.com/)
I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
Hey! If you like my post, or I solve your issue, please Rate Me!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|