Hi,
I managed to fix it, I noticed I had duplicate lines of code:
myAdapter.Fill(MyDataTable)
DataGridView1.DataSource = MyDataTable
If MyDataTable.Rows.Count = 0 Then
MsgBox("Sorry - I can't find that postcode in the database, please try again, or add a new customer below...")
txtpostcodelookup.Text = ""
Else
txtpostcodelookup.Text = ""
myAdapter.Fill(MyDataTable)
DataGridView1.DataSource = MyDataTable
If you notice I have two fills on my temp table:
myAdapter.Fill(MyDataTable)
Thanks anyway, but I sorted it myself!