Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / July 2007

Tip: Looking for answers? Try searching our database.

Entering and Viewing dates in a form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TT - 19 Jul 2007 22:02 GMT
Hi there,

I am building a form where I use a short date input mask in a date field in
my table.  After the date is entered, I can see the date reflected as I would
like it as "08/18/07".  

However, when I go to someone elses computer and use my form who has their
global settings set up to show a short date as "mm/dd/yyyy", the format
changes.

The data entry is still "mm/dd/yy" as that's what the input mask requires.  
But it is displayed differently after the user leaves the text box.

Is there any way to override the users global settings and display the date
on the form as "mm/dd/yy" and still allow them to edit the date as well?

Thanks for your assistance!!

Signature

TT

Klatuu - 19 Jul 2007 22:46 GMT
Neither Input Masks nor Formats have any effect on how the value is stored.  
An Input Mask is useful only to impose data entry requirements.  Most
professional developers, including me, don't use input masks.  The come with
some stinky baggage.  Formats are very useful for displaying data.  If you
use a format on your date controls on your form, you will always see them as
you want them.
An Input mask has no effect on how a value is displayed.
A Format has no effect on how the value is entered in the control.
Signature

Dave Hargis, Microsoft Access MVP

> Hi there,
>
[quoted text clipped - 13 lines]
>
> Thanks for your assistance!!
TT - 24 Jul 2007 16:52 GMT
Thank you very much for your response!

I understand what you mean about the input masks as they can be somewhat of
a pain.  

One other question about the formatting:  Is it possible to have custom
formatting of your control while having it as a data input field at the same
time?

Thanks again!!
Signature

TT

> Neither Input Masks nor Formats have any effect on how the value is stored.  
> An Input Mask is useful only to impose data entry requirements.  Most
[quoted text clipped - 22 lines]
> >
> > Thanks for your assistance!!
Klatuu - 24 Jul 2007 16:56 GMT
Sure.  Use the Format property in the Properties dialog to define the format.
Again, it has no effect on how the data is entered or stored.  It only
defines how it is displayed.
Signature

Dave Hargis, Microsoft Access MVP

> Thank you very much for your response!
>
[quoted text clipped - 33 lines]
> > >
> > > Thanks for your assistance!!
TT - 25 Jul 2007 03:28 GMT
Thank you Dave.

I appreciate your patience!
Signature

TT

> Sure.  Use the Format property in the Properties dialog to define the format.
>  Again, it has no effect on how the data is entered or stored.  It only
[quoted text clipped - 37 lines]
> > > >
> > > > Thanks for your assistance!!
TT - 25 Jul 2007 04:50 GMT
For some reason, I thought the format property in the Properties dialog was
limited to the items listed in the drop down box.  So if I selected Short
Date, then the date would be displayed in the format which the user has set
in their regional settings.

I didn't know it was as simple as entering in mm/dd/yy in the format
property to customize how you want to display the date.  

My apologies.  Sometimes the answer is so simple but you still need a
guiding hand to find it.

Thanks again Dave!  I also wanted to thank you and everyone else who helps
out in this news group.  There is so much valuable information here and
everyone is very willing to share what they know whenever they can.  Cheers
to you all!

Kind Regards,
TT

> Sure.  Use the Format property in the Properties dialog to define the format.
>  Again, it has no effect on how the data is entered or stored.  It only
[quoted text clipped - 37 lines]
> > > >
> > > > Thanks for your assistance!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.