First a caveat. MS Access is not a multi-user database. So it's not appropriate for serious work if you're writing a web application. For such things use a true multi-user database such as SQL Server or MySQL.
In
Java, the standard way to communication with a database is via the Java Database Connection protocol (
JDBC). You obtain a JDBC Connection object using a JDBC URL and a JDBC Driver.
The Driver defines the database protocols that it supports. For example: "jdbc:db2" or "jdbc:postgresql". In most cases, the JDBC URL format is in a format like: "jdbc:protocol://server:port/dabatase" with possible additional options. MS Access doesn't use a database server, so instead you use a driver called the "jdbc/odbc bridge driver". ODBC is more or less the Windows equivalent to JDBC, so in addition to talking to MS Access, it's also used to talk to FoxPro databases. SQL Server has its own JDBC driver, which is more suited for heavy-duty work.
For a full example, try this:
http://www.benchresources.net/jdbc-msaccess-database-connection-steps/
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.