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

Date/Time



 
 
Thread Tools Display Modes
  #1  
Old February 9th, 2006, 03:26 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Date/Time

I have a bound form and one of my text boxes is pointing to a a date/time
field. Whenever this value goes in the time is appended. I have set the
format to = shortdate and added the correct input mask. I am seting the
value on the textbox to = date. and the time is appended. When I make the
textbox unbound the time is not appended. So I'm thinking it must be the
table. I have added shortdate into the table and I'm still getting the time
appended.

Why is this happening?


  #2  
Old February 9th, 2006, 04:01 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Date/Time

What time are you seeing appended? A date only field will have a time of
midnight. A date/time value is stored as a floating point number. The
integer portion is the number of days since the base date and the decimal
portion is the time of day stored as a fraction of the day (i.e. .0 is
midnight, .25 is 6am, .5 is noon, etc). Since all integers have a decimal
value of 0, midnight is assumed to be the time when you have a date only. If
you're seeing a time other than this, then there is something you've set
that is generating the time.

Please show the input mask and the full line of code you're using to assign
the value to the textbox. Have you set a Default Value in the control's
properties or the field's properties in the table?

--
Wayne Morgan
MS Access MVP


"Chris" wrote in message
...
I have a bound form and one of my text boxes is pointing to a a date/time
field. Whenever this value goes in the time is appended. I have set the
format to = shortdate and added the correct input mask. I am seting the
value on the textbox to = date. and the time is appended. When I make the
textbox unbound the time is not appended. So I'm thinking it must be the
table. I have added shortdate into the table and I'm still getting the
time
appended.

Why is this happening?




  #3  
Old February 9th, 2006, 04:04 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Date/Time

A date time field always stores the date and time. You can select to SEE
only the date or the time, but both are stored.

This entry is stored as a numeric entry where a portion is the date and a
portion is the time.

If you do not specify a time, I believe midnight is used.


--
Rick B



"Chris" wrote in message
...
I have a bound form and one of my text boxes is pointing to a a date/time
field. Whenever this value goes in the time is appended. I have set the
format to = shortdate and added the correct input mask. I am seting the
value on the textbox to = date. and the time is appended. When I make the
textbox unbound the time is not appended. So I'm thinking it must be the
table. I have added shortdate into the table and I'm still getting the
time
appended.

Why is this happening?




  #4  
Old February 10th, 2006, 01:44 AM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Date/Time

Try this to format the date without the time:
Format(Date(),"mm/dd/yyyy")


"Chris" wrote:

I have a bound form and one of my text boxes is pointing to a a date/time
field. Whenever this value goes in the time is appended. I have set the
format to = shortdate and added the correct input mask. I am seting the
value on the textbox to = date. and the time is appended. When I make the
textbox unbound the time is not appended. So I'm thinking it must be the
table. I have added shortdate into the table and I'm still getting the time
appended.

Why is this happening?



 




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
Need Feedback on table setup Little Penny Database Design 1 December 28th, 2005 11:32 AM
Table Design Review of Fields and Tables Bernard Piette Database Design 9 December 21st, 2005 09:40 PM
Tasks, Assignments and Projects Database Structure. Bernard Piette Database Design 2 December 21st, 2005 01:30 PM
Add New Field to DB Karen Database Design 7 October 19th, 2005 08:03 PM
date/time stamp Jan Worksheet Functions 4 June 19th, 2005 09:51 PM


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