Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,

This is the query I have used for linking two Datagridview for qty calculation.
There is an error showing that " the variable insert is assigned but its value is never been used".

What I have tried:

This is the code given below.

string insert = ("SELECT dbo.tblSubAssyCreation.Qty, dbo.tblDetailedPlan.Qty FROM dbo.tblSubAssyCreation INNER JOIN dbo.tblDetailedPlan ON dbo.tblSubAssyCreation.ID = dbo.tblDetailedPlan.ID where tblDetailedPlan.Qty = tblSubAssyCreation.Qty*tblDetailedPlan.Qty");


Kindly help me.

With Regards

(T.E. SRINIVASARAGHAVAN).
Posted
Updated 18-Sep-16 1:09am

1 solution

We can't: the error means exactly what is says.
The variable insert is assigned but its value is never been used

You have declared insert, you have given it an initial value, but you do not use it in your code again.
We can't fix that: we have no idea what the rest of your code does, or where the variable is supposed to fit in!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900