Re: DateTime field showing unwanted Time

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Access date field includes the time. If you are viewing the date with a
query or in control box you can use format:

format(datefield,"mmddyy")

Bonnie
http://www.dataplus-svc.com

dgifford wrote:
All of a sudden, my date fields are showing a datetime with the time portion
the same in every table and database I open.

The time portion is 12:17:04 AM regardless of what table or database I open.

If I run a query on a date field and convert it to a double format,
"cdbl([the date])", the number has no decimal portion!
The date is stored as a whole number.

If I enter a date in a datetime field the time is automatically appended to
the
date in the display but the time portion is not stored in the data file.

I am able to open the same mdb's on another computer, and there is no
problem with the date fields.

I have played with changing my system Regional Setting and problem still
exhists.

The only thing I was able to do is go into a database table design mode and
add shortdate to the format of each date field.
This fix is temporary because I do not want to have to change 100+ mdb's.

One strange thing I came across was: If I open a query view and enter
Expr1:CStr(#12/11/2002#)
then exit the field, the system automatically changes my
entry to Expr1: CStr(#12/11/2002 12:17:04 AM#).

This anomaly is being created by the OS or Access somehow!

Any suggestions will be greatfully appreciated.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-setupconfig/200807/1

.



Relevant Pages

  • Re: Getting entries from an SQL database with datetime parameter
    ... format is what you want. ... funtion to convert date string into date time accordig to your needs. ... your database, you will run into troubles comparing date to string. ... > hard coded a query to populate the datagrid, ...
    (microsoft.public.dotnet.framework.adonet)
  • VBScript format database query to HTML
    ... I'm trying to write a script that will query a database, format the ... results into an html table, ...
    (microsoft.public.scripting.vbscript)
  • Re: Make Table Query
    ... I have 300 users of the database; however, 10 of the users need to enter the ... Delete Query for "temp" Table. ... If you want to control the format, ...
    (microsoft.public.access.queries)
  • Re: out-of-range data error (2147217913)
    ... SQL statement with this date? ... > SQL Server 2000 database. ... > settings are OK, users are set to "British English", and if you query ... you seem to have to use mm/dd/yyyy format in the ...
    (microsoft.public.vb.database.ado)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)