I'm a ultranewbie in java programming (and in english writing, sorry).
I'm connected to an Access database with a JDBC:ODBC driver. Something like this:
But I need to invoke an Access VBA public function from this method. I have no idea about how to do that (if is possible).
Or maybe trying to run an Access Macro from Java, because if I can run a macro, can run a function.
Somebody can help?
Thanks
I'm connected to an Access database with a JDBC:ODBC driver. Something like this:
Code:
public class PruebaAccess {
private Connection con;
private String Database;
public PruebaAccess(String Database) {
this.Database = Database;
}
public void escribir(){
//La conexion arranca en null
con = null;
try {
// Registrar el driver
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// Crear la conexion
con = DriverManager.getConnection("jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ="+this.Database,"","");
} catch (SQLException sqle) {
........ etc .......
}
........ etc .......
}
But I need to invoke an Access VBA public function from this method. I have no idea about how to do that (if is possible).
Or maybe trying to run an Access Macro from Java, because if I can run a macro, can run a function.
Somebody can help?
Thanks