T
tsisolutions
Hi all,
I'm having a problem with a certain syntax. I need On Form Load to
check loop through each control and if a control has a date format
apply a certain format to that control.
The reason I'm doing this is because I would like each textbox control
with a date format in it to the following format ex: "11-Nov-2007
5:30PM". However, because my application is distributed in the US and
Canada, I need it to have the date format according to their local
settings (dd-mmm-yyyy or mmm-dd-yyyy) Ideally I'd like it to look
something like this:
ctl.Format = Format(ctl, "Medium Date") & " " & (ctl, "Medium Time")
so that the date format are take from Windows settings.
I just can't seem to find a way to catch the controls whose format is
date and actually modify that form's control on Load to the format I
need.
Any help would be greatly appreciated....
Lawrence
TSI Solutions
I'm having a problem with a certain syntax. I need On Form Load to
check loop through each control and if a control has a date format
apply a certain format to that control.
The reason I'm doing this is because I would like each textbox control
with a date format in it to the following format ex: "11-Nov-2007
5:30PM". However, because my application is distributed in the US and
Canada, I need it to have the date format according to their local
settings (dd-mmm-yyyy or mmm-dd-yyyy) Ideally I'd like it to look
something like this:
ctl.Format = Format(ctl, "Medium Date") & " " & (ctl, "Medium Time")
so that the date format are take from Windows settings.
I just can't seem to find a way to catch the controls whose format is
date and actually modify that form's control on Load to the format I
need.
Any help would be greatly appreciated....
Lawrence
TSI Solutions