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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

date/time data type



 
 
Thread Tools Display Modes
  #1  
Old July 11th, 2004, 01:11 AM
Patrick
external usenet poster
 
Posts: n/a
Default date/time data type

I am creating a form using a calander and trying to link
the date back to the table in the database. the problem
I'm having is access is creating a time for the entry on
the table after I select short date in the format for the
entry. Does anyone know how I can remove the time from
the database entry or prevent Access from creating a time
for the date entry in the table?

Thanks in advance for any assistance you can give.

PS I'm a newbie at Acces
  #2  
Old July 11th, 2004, 01:25 AM
Ken Snell
external usenet poster
 
Posts: n/a
Default date/time data type

A date/time value always includes both a date and a time portion. This is
because the date/time value is a double precision decimal, where the integer
portion is the number of days since December 30, 1899, and the fraction
(decimal) portioin is the time in fractions of 24 hours (e.g., 0.25 = 6 AM
and 0.5 = 12 noon). If the value is just a date only, then the time portion
is zero. If the value is just a time only, the integer portion is zero.

How are you setting a date to the field's value? If you're using the Now()
function, then use the Date() function instead. Now returns date and time,
Date returns just the date, and Time returns just the time.

--

Ken Snell
MS ACCESS MVP

"Patrick" wrote in message
...
I am creating a form using a calander and trying to link
the date back to the table in the database. the problem
I'm having is access is creating a time for the entry on
the table after I select short date in the format for the
entry. Does anyone know how I can remove the time from
the database entry or prevent Access from creating a time
for the date entry in the table?

Thanks in advance for any assistance you can give.

PS I'm a newbie at Acces



  #3  
Old July 11th, 2004, 02:07 AM
Patick
external usenet poster
 
Posts: n/a
Default date/time data type

Thanks that works perfectly. I was using the now()
instead of date().

Again Thanks a million!
-----Original Message-----
A date/time value always includes both a date and a time

portion. This is
because the date/time value is a double precision

decimal, where the integer
portion is the number of days since December 30, 1899,

and the fraction
(decimal) portioin is the time in fractions of 24 hours

(e.g., 0.25 = 6 AM
and 0.5 = 12 noon). If the value is just a date only,

then the time portion
is zero. If the value is just a time only, the integer

portion is zero.

How are you setting a date to the field's value? If

you're using the Now()
function, then use the Date() function instead. Now

returns date and time,
Date returns just the date, and Time returns just the

time.

--

Ken Snell
MS ACCESS MVP

"Patrick" wrote in message
...
I am creating a form using a calander and trying to

link
the date back to the table in the database. the

problem
I'm having is access is creating a time for the entry

on
the table after I select short date in the format for

the
entry. Does anyone know how I can remove the time from
the database entry or prevent Access from creating a

time
for the date entry in the table?

Thanks in advance for any assistance you can give.

PS I'm a newbie at Acces



.

 




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
Vanishing data in form field of memo type MargaretM New Users 12 July 14th, 2004 03:50 PM
charting date and time data (every minute type) econair Charts and Charting 1 February 6th, 2004 02:30 PM


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