Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 22nd, 2003, 11:46 PM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Updating Records

I am trying to update Access DB records and get this error message
Microsoft JET Database Engine (0x80040E14)
Syntax error in UPDATE statement.

Since the code works when I use only two text fields and one interger field, but not when I add other fields, I think the problem is in my SQL. Here is what the code is generating

UPDATE ServiceRecords SET client = 'High Roller', tech = 'Gruen', serviceda = #8/25/2003#, hours = 2, followupda = #1/1/1111#, morehours = 0, completed = #1/1/1111#, status = 'No', parts = 'List the parts here.', action = 'Tell what you did here to make notes for next time.' WHERE (ID = 10)

I have changed everything I can think to change that might in any way conflict (hours2 to morehours, etc.) I'm sure it is something simple but I just can't find it.
 
Old August 23rd, 2003, 11:12 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out myself. I took out all the SQL generating code and replaced it one line at a time. It didn't like the field named action - comments works.





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in updating records & finding records naveed77 VB Databases Basics 1 January 16th, 2007 12:12 PM
problem in updating records & finding records naveed77 VB How-To 1 January 16th, 2007 12:10 PM
Updating records help bspradeep Classic ASP Databases 29 September 9th, 2003 07:00 AM
Updating records bspradeep Classic ASP Databases 0 August 20th, 2003 09:27 AM
Updating records help bspradeep Classic ASP Databases 0 July 7th, 2003 10:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.