Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table update says must use updateable query.

Status
Not open for further replies.

mutley1

MIS
Jul 24, 2003
909
Hey guys,

code below. Trying to convert a text field to date time and thought I would convert thwe text first using the below (from 20110131 to 01/31/2011 as an example), but I keep getting "must use Updateable query" Any help appreciated as its a long time since I programmed, but this loooks fine to me and the select brings back good formatted data.

Code:
UPDATE [detail report history]
SET [detail report history].REPORT_DATE =(Select mid ([detail report history].report_date ,5, 2)+'/'+right ([detail report history].report_date,2)+'/'+Left([detail report history].REPORT_DATE,4)FROM [detail report history]);
 
What about this ?
Code:
UPDATE [detail report history]
SET report_date = Mid(report_date,5,2) & '/' & Right(report_date,2) & '/' & Left(report_date,4)
WHERE report_date Like '########'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top