I know (hope!) that there is an easy solution to this one. Why, when I display a date on my form, is the date wrong? Using VB6.0 with a SQL Server 7.0 DB. I have a table (Damages) and a datetime field (Date_Opened). My form accepts the date in with a format of dd-mmm-yyyy. When the row is written to the table, it goes in like d/m/yy. When the row is displayed on the form after a search function, the date is all hosed up. For example, if I enter my Open Date as 01-JAN-2004, when I do a search, it displays 11-___-____. The Open Date field on the VB form as a MaskEdBox (mskOpenDate). I set the .mask = "##-???-####" and the .Format to "dd-mmm-yyyy". If I run debug when entering data, the date looks correct. It also looks OK in the DB, only when I do the re-display does it look wrong. Any ideas? Thanks in advance,
Michael A. Martin
Michael A. Martin