3
Answers

Overload Method Error

Edward

Edward

15y
2.4k
1
Hi, I am trying to build a simple program that keeps track of a list of print cartridges.

I am using C# express and SQL server express.

I have a query called 'Insert Query' which when I run it in the SQL wizard returns the correct rows.

However when I then attempt to integrate the query into the code as I have with many of my other queries I get the following error.

'No overload for Method 'InsertQuery' takes '1' argument'

My code looks like this

this.ordersTableAdapter.InsertQuery(this.orderDataSet.Orders);

This code is on a secondary form to my main form if that makes any difference?

Am I doing something very dopey here? Any help appreciated

Thanks

Answers (3)