Solved

Incorrect syntax near ')'. for SQL Server String

Posted on 2010-11-09
2
392 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

803 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