Quote Originally Posted by dekon View Post
{"Object reference not set to an instance of an object."}
Where does this error occur? have you single stepped through the code in a debugger to find the line that throws this error?

Quote Originally Posted by dekon View Post
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=J:\enterprise web develop\enterprise\CWsystem.mdb");
You may have to escape the backslashes in this code as follows:
Code:
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=J:\\enterprise web develop\\enterprise\\CWsystem.mdb");