Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic 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 ASP Free Forums Sponsor:
  #1  
Old September 28th, 2005, 01:04 PM
mkingrey mkingrey is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 4 mkingrey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 12 sec
Reputation Power: 0
Problems with SQL INSERT vb

This is used on an VB.net webform to insert a row in an access table. I get the following error no matter what I try,
"Syntax error in INSERT INTO statement"

Here is my SQL;

INSERT Into CalendarEvent (JobNo, DateStarted, Time, Desc, TypePerson, Scheduler) VALUES ('1014', '7/3/2005', '3:00', '3 Rm Carpet', 'OnLoCrew', 'bud')


All fields in the database are text fields so this shouldn't be a data type issue. I've checked 1,000 times to make sure my fields are named appropriately. Any help is appreciated!

Reply With Quote
  #2  
Old September 28th, 2005, 01:33 PM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,186 nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 107973 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107973 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107973 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107973 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107973 Folding Title: Super Ultimate Folder - Level 1Folding Points: 107973 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 2 Days 7 h 36 m 24 sec
Reputation Power: 699
Hi,
I am not sure what database your are using,
but my guess is that Time and Desc are
reserved words in the database your are using,
try the following:
Code:
INSERT INTO CalendarEvent ([JobNo], [DateStarted], [Time], [Desc], [TypePerson], [Scheduler]) VALUES ('1014', '7/3/2005', '3:00', '3 Rm Carpet', 'OnLoCrew', 'bud')

hope this helps
__________________
Look! Its a ShemZilla



Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Problems with SQL INSERT vb


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