Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21256

How to Stop DTPicker getting the Current Date and Being Cleared

$
0
0
Add Record Form: It has a DTPicker1(for IssueDate Field) that auto detect the current Date/Time.
Screenshot #1 - Adding a New Record



Listview Form: Viewing the Listview records Issued Date and Released Date
Screenshot #2 - Look at the Date Issued and Released Date



Edit Record Form: It has a 2 DTPickers. DTPicker2(for Released Date Field) and DTPicker3(for IssueDate Field).
note: at the edit record the 2 DTPickers are set to Checkbox True and has a Value of DTPicker = Null
Screenshot #3 - Noticed that the DTPicker3 is showing the current date and also the DTPicker2



Screenshot #4





Problem
Screenshot #3 Date Issued should stay at 2/27/2014. Why is it showing the current date? If the user check the Date Issued the date will be change to current date 2/28/2014. We do not want that to happen. Even i un-check it to avoid getting the current time, it will be cleared.
Also if the user wants to change the Date Released he will check it and set the date. what will happened is the Date Issued will be cleared. Or vice-versa

Viewing all articles
Browse latest Browse all 21256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>