Quantcast
Channel: Visual Basic Tips and Tricks
Viewing all articles
Browse latest Browse all 2212

Visual basic 15

$
0
0

Buongiorno, e' la prima volta che Vi scrivo e lo faccio perche' non riesco a trovare l'errore su Update Support, INSERT INTO funziona benissimo.

Errore sintassi (operatore mancante) nella Query ........

Sistema Operativo : Windows 10

Visual Basic v.2015 Ultimate.

Ecco la routine incriminata:

Public Shared Function SupportUpdate(ByVal prmIDRecord As Long) As String

'
If prmIDRecord > 0 Then
sSQL = " UPDATE Support "
sSQL = sSQL & " SET ID = @ID"
sSQL = sSQL & " COfS = @COfS"
sSQL = sSQL & " Abbreviation = @Abbreviation"
sSQL = sSQL & " Comment = @Comment"
sSQL = sSQL & " IDGrouping = @IDGrouping"
sSQL = sSQL & " ck1 = @ck1"
sSQL = sSQL & " TaxForm = @TaxForm"
sSQL = sSQL & " Painting = @Painting"
sSQL = sSQL & " TaxRate = @TaxRate"
sSQL = sSQL & " WHERE AutoID = "& prmIDRecord
Else
sSQL = " INSERT INTO Support "
sSQL = sSQL & " ( ID, COfS, Abbreviation, Comment, IDGrouping, ck1, TaxForm, Painting, TaxRate) "
sSQL = sSQL & " VALUES ("
sSQL = sSQL & " @ID, @COfS, @Abbreviation, @Comment, @IDGrouping, @ck1, @TaxForm, @Painting, @TaxRate)"
End If
'
Return sSQL
'
End Function

 

Grazie.

 


Viewing all articles
Browse latest Browse all 2212

Trending Articles


HOY PANGIT, MAGBAYAD KA!


Henry el monstruo feliz para colorear e imprimir


Dama y vagabundo para pintar


Girasoles para colorear


Good Morning Quotes


RE: Mutton Pies (jameskoiman)


Hagibis (1946) by Francisco V. Coching


Ka riam ka beit bad ka por riam


Vimeo Create - Video Maker & Editor 1.6.0 by Vimeo Inc


Vimeo 3.42.1 by Vimeo Inc