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  

time edit short date



 
 
Thread Tools Display Modes
  #1  
Old March 16th, 2007, 01:01 AM posted to microsoft.public.access.forms
Ken
external usenet poster
 
Posts: 954
Default time edit short date

My form and underlying table has short date fields (dd/mm/yyyy).

When these fields are manually editted the time component is revealed and
has to be erased by the operator.

Can seeing the time portion be avoided when the field is editted?
  #2  
Old March 16th, 2007, 01:07 AM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default time edit short date

ken wrote:
My form and underlying table has short date fields (dd/mm/yyyy).

When these fields are manually editted the time component is revealed
and has to be erased by the operator.

Can seeing the time portion be avoided when the field is editted?


It is only showing a time becaue you are storing one. When the time is midnight
then Access will not do that upon editing the field. How are populating the
data?

Formatting has zero to do with this. That affects display only.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #3  
Old March 16th, 2007, 01:34 AM posted to microsoft.public.access.forms
Ken
external usenet poster
 
Posts: 954
Default time edit short date

Rick,

Thanks for your interest.

The date field comes from the underlying table where the data is entered
using the now() function....is there a better method?

Thanks
Ken
"Rick Brandt" wrote:

ken wrote:
My form and underlying table has short date fields (dd/mm/yyyy).

When these fields are manually editted the time component is revealed
and has to be erased by the operator.

Can seeing the time portion be avoided when the field is editted?


It is only showing a time becaue you are storing one. When the time is midnight
then Access will not do that upon editing the field. How are populating the
data?

Formatting has zero to do with this. That affects display only.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com



  #4  
Old March 16th, 2007, 01:49 AM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default time edit short date

ken wrote:
Rick,

Thanks for your interest.

The date field comes from the underlying table where the data is
entered using the now() function....is there a better method?


Now() includes date and time. If you don't want to deal with time then use
Date().

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #5  
Old March 16th, 2007, 01:53 AM posted to microsoft.public.access.forms
missinglinq via AccessMonster.com
external usenet poster
 
Posts: 545
Default time edit short date

As Rick said, for it to show the time you have to be populating the field
with the time as well as the date. Since you appear to not be aware of this,
I'm assuming you're not actually entering the date and time, but rather
assigning a value to the date field using Now() which yields date and time.
In the Design View for the form, I'd look into the Property Box for the field
and see if the Default Value is set to =Now(). If so change it to = Date().

IF the Default Value isn't set to Now(), go into the Code window for the form
and enter NOW in the Find box and see if you can find anywhere that it
appears in code. If you find it relative to the field in question, once again
change Now() to Date().

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via http://www.accessmonster.com

  #6  
Old March 16th, 2007, 01:54 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default time edit short date

If you want the date only, not date and time, use Date() instead of Now().

To dump the time component from existing records, use an Update query
(Update on Query menu, in query design.) If the field is named Date1, you
would update it to:
DateValue([Date1])

Since you use non-US dates, this may also help your at another time:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"ken" wrote in message
...
Rick,

Thanks for your interest.

The date field comes from the underlying table where the data is entered
using the now() function....is there a better method?

Thanks
Ken
"Rick Brandt" wrote:

ken wrote:
My form and underlying table has short date fields (dd/mm/yyyy).

When these fields are manually editted the time component is revealed
and has to be erased by the operator.

Can seeing the time portion be avoided when the field is editted?


It is only showing a time becaue you are storing one. When the time is
midnight
then Access will not do that upon editing the field. How are populating
the
data?

Formatting has zero to do with this. That affects display only.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #7  
Old March 16th, 2007, 02:13 AM posted to microsoft.public.access.forms
missinglinq via AccessMonster.com
external usenet poster
 
Posts: 545
Default time edit short date

I was a minute ahead of you Allen; how did your post get ahead of mine?

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via http://www.accessmonster.com

  #8  
Old March 16th, 2007, 04:18 AM posted to microsoft.public.access.forms
Ken
external usenet poster
 
Posts: 954
Default time edit short date

Thanks everybody - great efficient service!

"Allen Browne" wrote:

If you want the date only, not date and time, use Date() instead of Now().

To dump the time component from existing records, use an Update query
(Update on Query menu, in query design.) If the field is named Date1, you
would update it to:
DateValue([Date1])

Since you use non-US dates, this may also help your at another time:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"ken" wrote in message
...
Rick,

Thanks for your interest.

The date field comes from the underlying table where the data is entered
using the now() function....is there a better method?

Thanks
Ken
"Rick Brandt" wrote:

ken wrote:
My form and underlying table has short date fields (dd/mm/yyyy).

When these fields are manually editted the time component is revealed
and has to be erased by the operator.

Can seeing the time portion be avoided when the field is editted?

It is only showing a time becaue you are storing one. When the time is
midnight
then Access will not do that upon editing the field. How are populating
the
data?

Formatting has zero to do with this. That affects display only.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com



 




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


All times are GMT +1. The time now is 05:21 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.