ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 23rd, 2003, 06:48 PM
stnoonan stnoonan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 1 stnoonan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Syntax error in UPDATE statement MS Access/ASP

Hi folks,

I'm an ASP newbie and I'm trying to update an Access table based on a compare between two tables. I get a syntax error that I cannot figure out. From what I know about Access this should work (and does when run directly in Access). Here is the line of code that is getting the syntax error:

oConn.Execute strCommand

where the strCommand = "UPDATE Times SET Times.[10:30 AM] = " & strUpdate & " WHERE (([Times]![DATE]=CDate([Reservations]![PartyDate])));"

oConn = the connection string that is working since I can add records to the Reservations table successfully and Response.Write records back out of it.

strUpdate="Test"

when I Response.Write the strCommand, I get: UPDATE Times SET Times.[10:30 AM] = "Test" WHERE (([Times]![DATE]=CDate([Reservations]![PartyDate]))); which looks fine to me.



Can anyone find a syntax error here? Thanks in advance.

Sean

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Syntax error in UPDATE statement MS Access/ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT