Bug #15041 | Cast from string "INSERT INTO table_name" to type 'Double' is not valid | ||
---|---|---|---|
Submitted: | 18 Nov 2005 3:05 | Modified: | 20 Nov 2005 8:30 |
Reporter: | Reginald Fewell | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 5.0 | OS: | Windows (Windows XP) |
Assigned to: | Bugs System | CPU Architecture: | Any |
[18 Nov 2005 3:05]
Reginald Fewell
[20 Nov 2005 8:30]
Vasily Kishkin
You need to replace "+" on "&" : from: Dim myInsertQuery As String = "INSERT INTO transactions Values ('" + transacdate + "', '" + firstn + "', '" + lastn + "','" + middle + "', '" + phone + "', '" + transaction_total + "', '" + taxdeduct + "')" to: Dim myInsertQuery As String = "INSERT INTO transactions Values ('" & transacdate & "', '" & firstn & "', '" & lastn & "','" & middle & "', '" & phone & "', '" & transaction_total & "', '" & taxdeduct & "')" It is sintax VB error.
[27 May 2010 6:32]
axel caceres
gracias me fue de mcuha utilidad