I have a "general-date" field but I want to use two text boxes to input and display the field's value on one form. One text box is for the date part and the other one for the time part. What is the best way to do this?
I want to have default value of "Date()" for the date part and "#23:59#" for the time part. In case the user enters or updates the date text-box with another value, the time part will still be #23:59#, and vice versa. I need these two text-boxes act like if I had this date with two fields to separate the date and time part.
I want to have default value of "Date()" for the date part and "#23:59#" for the time part. In case the user enters or updates the date text-box with another value, the time part will still be #23:59#, and vice versa. I need these two text-boxes act like if I had this date with two fields to separate the date and time part.
If your time value isn't going to change then I don't think it would be necessary to save it. Just set the text box's value to 23:59 on the Load event of the form and lock or disable it. For the date part, you will find a Default Value property, put Date() in there. Best to do it on your table.