473,408 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Updating general date to short date in query

If any one that can help me I have this simple database that I need to gather information and sort depending on carrier.

A field in one of the tables is set up for general date format and I need to create a query to update the field to short date.

I figured this is the only way since the information is being imported from excel in general date format.

If any one can help that would be greatly appreciated Im a beginner and this seems to be the only place I have been stuck on so far.

Some one posted on this website in 2006 this update format but it doesnt seem to work for me.
Expand|Select|Wrap|Line Numbers
  1. UPDATE TableName SET TableName.DateTimeField =
  2. DateValue([TableName].[DateTimeField]);
my table name is RECAPS INPUTS
and my Field name is APPT.

What am I doing wrong ?
Thank you,

Corey
Oct 26 '09 #1
2 3406
forgot to mention this is how it is set up !!
Expand|Select|Wrap|Line Numbers
  1. UPDATE RECAPS INPUTS
  2. SET RECAPS INPUTS.APPT = DateValue([RECAPS INPUTS].[APPT]);
Oct 26 '09 #2
NeoPa
32,556 Expert Mod 16PB
@CORTHOM
That SQL is not good.

Try instead :
Expand|Select|Wrap|Line Numbers
  1. UPDATE [RECAPS INPUTS]
  2. SET [RECAPS INPUTS].APPT = DateValue([RECAPS INPUTS].[APPT]);
Names with embedded spaces must always be enclosed within brackets ([]).

Welcome to Bytes!
Oct 26 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
1
by: Dthmtlgod | last post by:
I am using a short date format (mm/dd/yy). When I enter in a date and run my update query, it is not accepting the data it puts in 12/30/1899 Here is the response.write of my SQL statement. ...
0
by: Galina | last post by:
Hello My form is based on a query returning rows of a table. Practically, it is based on a table, so simple the query is. A field on the form is formatted as short time. The column in the table,...
2
by: Rob | last post by:
Hello, I get an date field as a part of download in the format 01 Mar 04 12:00:00. I want this to be converted as a short date.How do i proceed? Also not connected with the above but in the same...
14
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will...
6
by: recif20002002 | last post by:
Hello I am trying to update table1 and set a new value with a condition selecting only the results for the element with the specified ID and the first one with the Date field null. The query...
2
by: savigliano | last post by:
hello, i am doing a date comparation and i have reallize that the data i have in my database (general date format) it is causing me problems, and because i donīt need the time data i would like to...
2
by: sixdeuce62 | last post by:
Hello, I am trying to create a query that will prompt me to enter the parameter value if beginning date and ending date. I have created everything I need in the query, but I have to manually go...
1
by: wetsprockets | last post by:
Hello, I have two tables, WindVector (wind data) and DOH_FC88to07 (water quality samples). The WindVector table has the following fields: Date (short date) Time (short time) WindSpeed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.