|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Why won't DateTimePicker work?I'm doing something like this:
With frmMain .DTPicker1.Value = rs.Fields("MyDate").Value .Textbox1.Text = "BlahBlah" .ShowDialog() End With When the form appears, it has today's date in DTPicker1 instead of what's in the data record. Data field is of type DateTime in SQL2000, Date value is in the "Short Date" format. Have you turned on option exclicit and option strict?
Are you sure Value returns a DateTime object? (And what is the *exact* value it returns) What type is rs btw (I couldn't find anything related to db stuff with a Fields property or method)? /claes Show quoteHide quote "Kevin" <kev***@cfl.rr.com> wrote in message news:n6afb219e7eh9rr4uk1iqg476qf5obvqrv@4ax.com... > I'm doing something like this: > > With frmMain > .DTPicker1.Value = rs.Fields("MyDate").Value > .Textbox1.Text = "BlahBlah" > .ShowDialog() > End With > > When the form appears, it has today's date in DTPicker1 instead of > what's in the data record. Data field is of type DateTime in SQL2000, > Date value is in the "Short Date" format.
C.NET VS VB6
Seeking Design Advice VB.NET 2002 question from complete and utter newbie to programming programatically created checkboxes within panels again.... DirectCast of object to interface doesn't work Strict type for Hashtable? Dataset to excel Dataset to excel Re: Strict type for Hashtable? Copyrighting a program |
|||||||||||||||||||||||