Mar 26th, 2000, 07:00 PM
Hi, My name is Joseph and am a beginner in VB. I have created various forms that have a MaskEdBox with the mask of ##/##/#### to portray the Date. In my Access Database I have the field data type defined as Date (ShortDate). When I update a new record in VB6 I receive the Error Occurred message. When I go to the Access db and chage the data type of the date field to text and update a new record in VB6 no errors occur. When I create reports in Access (data Type = text) and use criteria in the date field, for example Between "01/01/1999" And "12/31/1999" or "01011999" And "01311999" the report shows other dates that are not in the range selected. However if I change the field data type to Date and replace the quotes " for # the report gives me valid data. I would like to know how I can use the mask in vb6, maintain the field as a date field rather than a text so that my reports produce valid data.
Thanks Joe
Thanks Joe