hello
thx for the help but its still not working ..
..i have not used any specific database its just for trial, only with student names.
.. i am sure i am doing any silly mistake

, well check this out :)
import java.sql.*;
public class Accounts
{
public static void main(String[] args)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String source = "jdbc:odbc:database";
Connection dbConnection = DriverManager.getConnection(source);
Statement stmt = dbConnection.createStatement();
stmt.executeUpdate("INSERT INTO name (students) VALUES (zia)");
}
catch(ClassNotFoundException cnfe)
{
System.err.println(cnfe);
}
catch(SQLException sqle)
{
System.err.println(sqle);
}
}
}
and here is the exception when i run the program.
java.sql.SQLEXCEPTION: [MICROSOFT][ODBC MICROSOFT ACCESS DRIVER] Too few parameters. Expected 1.
regards
HumaMunir