I am getting an error when running the following code:
string SqlQuery = "Update " + frmmain.CityName + " set assignedtouserid='" +
frmmain.UserName + "', flag=1 where flag=0 and city like '%" +
newcituname + "%' ";
LeptonDataLayer.ExecuteNoneQuery(1, SqlQuery);
This is the error I'm recieving:
Object reference not set to an instance of an object
What can i do to resolve it?