473,396 Members | 1,799 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,396 software developers and data experts.

Updating a date/time field

94
I am trying to perfrom an update to approximately 1500 records within a table named "fes_addresses". (I have restricted it to one record for the example.)

See Access query SQL:

Expand|Select|Wrap|Line Numbers
  1. UPDATE FES_ADDRESSES 
  2. SET FES_ADDRESSES.OWNER_TYPE = "O", 
  3.     FES_ADDRESSES.UPDATED_DATE = #11/21/2007 9:10:00#
  4. WHERE (((FES_ADDRESSES.OWNER_TYPE)="S") 
  5. AND ((FES_ADDRESSES.ADDRESS_TYPE)="S") 
  6. AND ((FES_ADDRESSES.OWNER_REF)="601150"));
The updated_date field is not updating at all, i believe due to the formatting of the date. Any ideas??

fes_addresses is an oracle table and the field updated_date has the data type Date/Time.

Do i need to be using some variation of the TO_DATE function?
Nov 21 '07 #1
1 1321
Lewe22
94
I have resolved this query. It was a problem based around constraints and not the date format.
Nov 21 '07 #2

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

Similar topics

2
by: Raphael Gluck | last post by:
Hi everyone I am trying to create a form to update a database table. I have all the fields, set up, and a submit button happily processes my form. However, I am trying to create a field in my...
6
by: Hasanain F. Esmail | last post by:
Hi all, I sincerly thank you all in advance for your help to solve this problem. I have been trying to find a solution to this problem for sometime now but have failed. I am working on a...
5
by: DangerD321 | last post by:
Hi me again, last problem this time thoough! :¬) One table of my database is called Loans, and the fields in question here are Return Date and Days Late. Basically, what I want is the days late...
2
by: Ray Holtz | last post by:
I have a form that shows a single record based on a query criteria. When I click a button it is set to use an append query to copy that record to a separate table, then deletes the record from the...
5
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
1
by: RML | last post by:
Hi everyone, I am using VB.NET 2003 and an OleDBDataAdapter to update an Access table's DateTime field. The field's format is set to "General Date" (ie: 11/24/2004 8:00:00 AM). The problem is...
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...
1
by: rdemyan via AccessMonster.com | last post by:
My App has 10 or so tables that we provide that contains proprietary data. This data will need to be updated once or twice a year. I would like some comments, suggestions on my proposed strategy...
11
by: xelA | last post by:
Thanks, it worked. Another problem: Hey folks, where is the bug in this code? When updating the date field, it is updating all the records in the table with the same value (e.g. 2008-01-07) instead...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.