Click here to Skip to main content
15,914,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRadiobutton inside gridview Pin
sgkani15-Jun-07 21:38
sgkani15-Jun-07 21:38 
AnswerRe: Radiobutton inside gridview Pin
Duane in Japan17-Jun-07 0:22
Duane in Japan17-Jun-07 0:22 
QuestionHow to perform direct edit,add ,update and delete operations on datagridview in vb.net. Pin
hbk_leo15-Jun-07 20:20
hbk_leo15-Jun-07 20:20 
GeneralRe: How to perform direct edit,add ,update and delete operations on datagridview in vb.net. Pin
venu_dil16-Jun-07 0:08
venu_dil16-Jun-07 0:08 
GeneralRe: How to perform direct edit,add ,update and delete operations on datagridview in vb.net. Pin
hbk_leo16-Jun-07 21:02
hbk_leo16-Jun-07 21:02 
QuestionProject Database Pin
'Drew15-Jun-07 12:04
'Drew15-Jun-07 12:04 
QuestionInserting new records in a child table Pin
Psyfo15-Jun-07 11:31
Psyfo15-Jun-07 11:31 
AnswerRe: Inserting new records in a child table Pin
bigjokey15-Jun-07 12:10
bigjokey15-Jun-07 12:10 
When adding parameters, the parameter names in the SQL must match the parameters that you add: so your SQL should look like this:

sql = "INSERT INTO SALES (Dates, BookCode, InvoiceNumber, Quantity, SubTotal, VAT, Total) Values ( " + dtDate + " ,'" + bookcode + "','" + InvoiceNo + "', @qty , @subtot, @vat, @tot)"

You are also adding the date as a parameter "cmd.Parameters.Add(New OleDb.OleDbParameter("@dtDate", dtDate))" after you have already embedded it in the SQL. So you may want to change your SQL to look something like this:

sql = "INSERT INTO SALES (Dates, BookCode, InvoiceNumber, Quantity, SubTotal, VAT, Total) Values ( @dtDate ,'" + bookcode + "','" + InvoiceNo + "', @qty , @subtot, @vat, @tot)"

And given that you are using parameters, you may want to add the BookCode as a paramter aswell, for consistency.

Hope this helps
QuestionVB.Net Custom ListView Row Height Pin
bigjokey15-Jun-07 10:38
bigjokey15-Jun-07 10:38 
AnswerRe: VB.Net Custom ListView Row Height Pin
Tarakeshwar Reddy15-Jun-07 10:54
professionalTarakeshwar Reddy15-Jun-07 10:54 
GeneralRe: VB.Net Custom ListView Row Height Pin
bigjokey15-Jun-07 11:13
bigjokey15-Jun-07 11:13 
QuestionExporting data of Datagrids to Excel in VB.NET Pin
hsprasain15-Jun-07 9:59
hsprasain15-Jun-07 9:59 
AnswerRe: Exporting data of Datagrids to Excel in VB.NET Pin
Taylor Kobani16-Jun-07 4:19
Taylor Kobani16-Jun-07 4:19 
GeneralRe: Exporting data of Datagrids to Excel in VB.NET Pin
hsprasain16-Jun-07 10:09
hsprasain16-Jun-07 10:09 
QuestionContextmenu not always showing on right clicking DataGrid Pin
GuyThiebaut15-Jun-07 9:17
professionalGuyThiebaut15-Jun-07 9:17 
AnswerRe: Contextmenu not always showing on right clicking DataGrid Pin
Taylor Kobani16-Jun-07 4:29
Taylor Kobani16-Jun-07 4:29 
GeneralRe: Contextmenu not always showing on right clicking DataGrid Pin
GuyThiebaut16-Jun-07 6:34
professionalGuyThiebaut16-Jun-07 6:34 
Questionusing recordset in MS Access to place values into array Pin
reegan4115-Jun-07 3:20
reegan4115-Jun-07 3:20 
AnswerRe: using recordset in MS Access to place values into array Pin
GoodID21-Jun-07 17:56
GoodID21-Jun-07 17:56 
Questioncan any one tell reular exp to validate domain name Pin
koolprasad200315-Jun-07 3:08
professionalkoolprasad200315-Jun-07 3:08 
AnswerRe: can any one tell reular exp to validate domain name Pin
Tom Wright15-Jun-07 3:53
Tom Wright15-Jun-07 3:53 
GeneralRe: can any one tell reular exp to validate domain name Pin
koolprasad200315-Jun-07 21:15
professionalkoolprasad200315-Jun-07 21:15 
AnswerRe: can any one tell reular exp to validate domain name Pin
berghain15-Jun-07 4:47
berghain15-Jun-07 4:47 
GeneralRe: can any one tell reular exp to validate domain name Pin
koolprasad200315-Jun-07 21:13
professionalkoolprasad200315-Jun-07 21:13 
AnswerRe: can any one tell reular exp to validate domain name Pin
Steven J Jowett15-Jun-07 5:46
Steven J Jowett15-Jun-07 5:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.