Solved

Incorrect syntax near ')'. for SQL Server String

Posted on 2010-11-09
2
390 Views
Last Modified: 2012-06-21
Good Day:

I am using VS.NET 2005, VB.NET, and SQL Server.  The following syntax gives me an error that reads:
Incorrect syntax near ')'.

Dim sSQL as string
   sSQL = "INSERT INTO CodesQuick(Description, Type, ) values('" & _
                                            Me.cboType.Text & "','" & _
                                            frmQuote.cboDelivery.Text & "')"


Any Suggestions?

Thanks,
Denise
0
Comment
Question by:DeniseGoodheart
2 Comments
 
LVL 7

Accepted Solution

by:
rogerard earned 500 total points
ID: 34096779
You have an extra comma after the word type.
0
 

Author Comment

by:DeniseGoodheart
ID: 34096918
Yes of course.

Thank you rogerard.  
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now