his SQL statement is used on the table adapter for the datagridview1
SELECT Descrição, idEncomendado, Estado, NºSerie, Actualização, NumEnc
FROM Table_1Encomendados
WHERE NumEnc = @idEnc
but then i get this error
Error 1 Argument not specified for parameter 'idEnc' of 'Friend Overridable Overloads Function Fill(dataTable As demoDataSet2.Table_1EncomendadosDataTable, idEnc As String) As Integer'. C:\Documents and Settings\bruno.amorim\Os meus documentos\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplicati on1\frmMain.
vb 67 9 WindowsApplication1
on the line
Me.Table_1EncomendadosTableAdapter.Fill(Me.DemoDat aSet2.Table_1Encomendados)
idEnc is declared in a module as Friend integer
How is it possible to see the "Preview query" on the datagridview working but, whem you go to the code this error appears?