Access text box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a text box in which I am trying to set the .Text variable to assume a
value (specifically a date, in the format "mmddyyyy". The .Text variable
will not assume the new value. Is this a situation where the the Text
property is not set to equal the Value property? The problem arose when we
tried to incorporate a database that was writtem while using Windows 2000.
We are now using Windows XP. Everything works in our database accept the
dates, even though we have formatted them for a 4-character year, instead of
two.

Any assistance would be greatly appreciated. Thanks.
 
1) Are you trying to default a value in a field? If so, use the property
box and enter the default.

2) Are you saying that the date format changes? If so, check your regional
settings in the Windows control panel and modify the "short date" format.

Hope that helps,

Rick B
 
What happens is that the value I have, let's say it is "12062004" is
automatically formatted by the txt box. More specifically, I have a text box
called txtDate. When I write
txtDate.Text = "12062004"
it automatically changes its value to "12/06/2020". The short date format
has been set as "mm/dd/yyyy".
 
Back
Top