Here is the error message
Object reference not set to an instance of an object.
Line 18: FuelDSTableAdapters.FuelTableAdapter dsFuelTableAdapter = new FuelDSTableAdapters.FuelTableAdapter();
Line 19: decimal totalFuel = (decimal)dsFuelTableAdapter.TotalFuel(DateTime.Parse(TextBox2.Text), DateTime.Parse(TextBox1.Text));
Weird thing is - it works based on the dates I put into the text boxes. I think it has something to do with when I moved the database from one pc to another...
If I do not query any data added to the database before I moved it to the new computer, it works. However, as soon as the dates I enter into the textboxes try to use new data - I get this error message.
I've deleted all the data - added some new data and now I get this error every time.