Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 9th, 2004, 03:30 PM
kevincurington kevincurington is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 kevincurington User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question vb sql problem

This code does not like the field name Second at the very bottom. Is there a way around this? Is there something to put around it to make it accept it?


MySQL = "Update rFormResults set ClinicCity ='" & txtClinicCity.Text & _
"', ClinicState = '" & txtClinicState.Text & _
"', School = '" & txtSchool.Text & _
"', HeadCoach = '" & txtHeadCoach.Text & _
"', Address = '" & txtAddress.Text & _
"', City = '" & txtCity.Text & _
"', State = '" & txtState.Text & _
"', ZipCode = '" & txtZip.Text & _
"', Phone = '" & txtPhone.Text & _
"', total = '" & txtTotal.Text & _
"', Ccard = '" & txtCardType.Text & _
"', CCnumber = '" & txtCCNumber.Text & _
"', CCexpiration = '" & txtCCExperation.Text & _
"', Attendees = '" & txtAttendees.Text & "', CCaccepted = '" & cmbAccepted.Text & _
"', Attendee_1 = '" & txtAttendee1.Text & "', Attendee_2 = '" & txtAttendee2.Text & _
"', Attendee_3 = '" & txtAttendee3.Text & "', Attendee_4 = '" & txtAttendee4.Text & _
"', Attendee_5 = '" & txtAttendee5.Text & _
"', Attendee_6 = '" & txtAttendee6.Text & "', Attendee_7 = '" & txtAttendee7.Text & _
"', Attendee_8 = '" & txtAttendee8.Text & "', Attendee_9 = '" & txtAttendee9.Text & _
"', Attendee_10 = '" & txtAttendee10.Text & "', Attendee_11 = '" & txtAttendee11.Text & _
"', Attendee_12 = '" & txtAttendee12.Text & "', Attendee_13 = '" & txtAttendee13.Text & _
"', Attendee_14 = '" & txtAttendee14.Text & "', Dup = '" & chkDup.value & _
"', Reason = '" & txtReason.Text & "', Second = '" & txtAddress2.Text & _
"' where ID = " & Text1.Text

Reply With Quote
  #2  
Old December 16th, 2004, 09:10 PM
MrSnrub MrSnrub is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 MrSnrub User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 56 sec
Reputation Power: 0
Try putting the table name in front of the field name. For example:

[My Table].Second =

If this fails, perhaps you could post back the error text that you are getting so that we may help you further.

Hope this helps.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > vb sql problem


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 4 hosted by Hostway
Stay green...Green IT