A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

DateTime field input mask



 
 
Thread Tools Display Modes
  #1  
Old August 7th, 2004, 11:33 AM
Jim Franklin
external usenet poster
 
Posts: n/a
Default DateTime field input mask

Hi,

I have a date time field, which I have formatted to show the date in
'dd/mm/yyyy hh:nn' format. I would like users to be able to key in the data
in the same format, so have used the Input Mask '00/00/0000" "00:00;0;_'

However, Access doesn't seem to like this - if there is data already in the
field which is being overwritten, the input mask doesn't seem to work at
all, and when I key new data in, I get told it doesn't match the input mask.

I know this is a simple question, but what am I doing wrong?

Thanks for any help as always,

Jim F.


  #2  
Old August 7th, 2004, 05:05 PM
Jonathan Smith
external usenet poster
 
Posts: n/a
Default DateTime field input mask

Jim,

Are you having the users input the AM/PM portion of the time?

"Jim Franklin" wrote in
:

Hi,

I have a date time field, which I have formatted to show the date in
'dd/mm/yyyy hh:nn' format. I would like users to be able to key in



the data in the same format, so have used the Input Mask '00/00/0000"
"00:00;0;_'

However, Access doesn't seem to like this - if there is data already
in the field which is being overwritten, the input mask doesn't seem
to work at all, and when I key new data in, I get told it doesn't
match the input mask.

I know this is a simple question, but what am I doing wrong?

Thanks for any help as always,

Jim F.




  #3  
Old August 7th, 2004, 07:33 PM
Jim Franklin
external usenet poster
 
Posts: n/a
Default DateTime field input mask

Hi John,

No - the users will just enter the hours and minutes in 24-hour format. Does
this make a difference?

As an extra bit of info, I have noticed that when there is already data in
the field, when you click on the control, the date displayed switches to
General
Date format - i.e. "dd/mm/yy hh:nn:ss"

Cheers,
Jim F.

"Jonathan Smith" wrote in message
. 6...
Jim,

Are you having the users input the AM/PM portion of the time?

"Jim Franklin" wrote in
:

Hi,

I have a date time field, which I have formatted to show the date in
'dd/mm/yyyy hh:nn' format. I would like users to be able to key in



the data in the same format, so have used the Input Mask '00/00/0000"
"00:00;0;_'

However, Access doesn't seem to like this - if there is data already
in the field which is being overwritten, the input mask doesn't seem
to work at all, and when I key new data in, I get told it doesn't
match the input mask.

I know this is a simple question, but what am I doing wrong?

Thanks for any help as always,

Jim F.






  #4  
Old August 8th, 2004, 05:19 PM
Jonathan Smith
external usenet poster
 
Posts: n/a
Default DateTime field input mask

Jim,

That is the problem, the format you are using is seeking the AM/PM
designation.

Perhaps you should make Two Fields, One Date and One Time. That will
allow you to dictate the format for each element.

Jon


"Jim Franklin" wrote in
:

Hi John,

No - the users will just enter the hours and minutes in 24-hour
format. Does this make a difference?

As an extra bit of info, I have noticed that when there is already
data in the field, when you click on the control, the date displayed
switches to General
Date format - i.e. "dd/mm/yy hh:nn:ss"

Cheers,
Jim F.

"Jonathan Smith" wrote in message
. 6...
Jim,

Are you having the users input the AM/PM portion of the time?

"Jim Franklin" wrote in
:

Hi,

I have a date time field, which I have formatted to show the date
in 'dd/mm/yyyy hh:nn' format. I would like users to be able to key
in



the data in the same format, so have used the Input Mask
'00/00/0000" "00:00;0;_'

However, Access doesn't seem to like this - if there is data
already in the field which is being overwritten, the input mask
doesn't seem to work at all, and when I key new data in, I get told
it doesn't match the input mask.

I know this is a simple question, but what am I doing wrong?

Thanks for any help as always,

Jim F.








 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Input Mask Jane General Discussion 1 July 27th, 2004 11:50 PM
Field list greyed out when trying to add an option group Tony Using Forms 1 July 1st, 2004 03:40 AM
Input Mask Ramone General Discussion 1 June 17th, 2004 03:57 PM
Make a field lookup dependent on the value in another field of a record? Susan A Database Design 8 May 22nd, 2004 09:10 PM
Format and Input Mask James & Darla Martin Database Design 1 April 27th, 2004 04:35 PM


All times are GMT +1. The time now is 01:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.