Warning: Wrong parameter count for mysql_query() Programming Web Development by jenthevb … . '<br>'); $gd = new GoogleDistance($fromAddress, $toaddress); $vvb = $record['VVBnummer']; $shid = $record_sh['ID']; $afstand = $gd… = "INSERT INTO klvv_sr_afstand_sh ( vvb_nr_sr, shid, afstand, tijd) VALUES('$vvb', '$shid', '$afstand', '$tijd')"; echo($sql); $record = mysql_query… Re: Warning: Wrong parameter count for mysql_query() Programming Web Development by diafol … the issue: INSERT INTO klvv_sr_afstand_sh ( vvb_nr_sr, shid, afstand, tijd) VALUES('$vvb', '$shid', '$afstand', '$tijd') There are 4 fields and four values… Pass dgv cell data to a textbox on another form. (Not the same thread) Programming Software Development by ssertoglu …, I have a problem as every newbie :) I'm using vvb express 2013 and opening my windows with below code (credit… Re: Warning: Wrong parameter count for mysql_query() Programming Web Development by IIM can you tell the line number in which you are getting error??? Re: Warning: Wrong parameter count for mysql_query() Programming Web Development by Atli The old (and deprecated) MySQL API doesn't support parameterized queries, so it wouldn't complain about invalid parameter counts. MySQL might return such errors if they exist in the SQL query, but since there is no handling of errors in that code, that wouldn't be an issue here either. (MySQL execution errors aren't automatically reported by PHP.)… Re: Warning: Wrong parameter count for mysql_query() Programming Web Development by Atli P.S. The names of the databse tables and fields are horrible. Make it very hard to figure out what's even meant to be happening there. Explicit naming is always better in the long run. Makes code so much easier to maintain, especially if the project is passed on to other people. Acronyms and vague phrases just make things more difficult, even if … Re: Pass dgv cell data to a textbox on another form. (Not the same thread) Programming Software Development by Santanu.Das There is no cause to interrupt the execution of your codes. You should initialized the Object variable `yenifaturaekle` when application starts and also when the ChildForm closes. You can do some thing like this. Imports System.Windows.Forms Public Class MDIParent1 Dim yenifaturaekle As New Form1… Re: Pass dgv cell data to a textbox on another form. (Not the same thread) Programming Software Development by ssertoglu Thanks for your early reply but opening and closing forms code works. The code for passind the dgv variable to new form code doesn't work and it is not on the parent form. Here is the complete code for openformbutton.click event: Private Sub Alış_FaturasıDataGridView_RowHeaderMouseDoubleClick(sender As Object, e As … Re: Pass dgv cell data to a textbox on another form. (Not the same thread) Programming Software Development by Santanu.Das Ohoooo! you do the same wrong. Why are you call the form in its designed name `Yeni_Alış_Faturası`. Instead it, call the object variable `yenifaturaekle`, in which holds the reference of the form `Yeni_Alış_Faturası`. Replace your code with at the lines 14 & 15. yenifaturaekle.Label2.Text = Me.Alış_FaturasıDataGridView.CurrentRow.Cells(0).… Re: Pass dgv cell data to a textbox on another form. (Not the same thread) Programming Software Development by ssertoglu then it says idtextbox.text is not a member of yenifaturaekle. anyway i workaround the proble with a global variable. Thank you very much for your help again. Re: Pass dgv cell data to a textbox on another form. (Not the same thread) Programming Software Development by Santanu.Das Remove "Me" keyword from line No 5 Replace line 5 with yenifaturaekle = New Yeni_Alış_Faturası