Java + MSAccess + access function

B

Belgarath

Hello,

I need to make queries on Ms Access database (which is on a server)
from a java applet (which is on the same server).

The connection works and i can make some queries without problem :)

BUT some of these queries are made thanks to Access functions in VBA
and when i execute them an exception is thrown ... :

java.sql.SQLException: [Microsoft][Pilote ODBC Microsoft Access]
Fonction 'TempsOuvre' non définie dans l'expression.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:
338)
at
sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:
253)

How can I execute these queries ? Is there any way to load these
functions ?

Thank you all

..
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Belgarath said:
I need to make queries on Ms Access database (which is on a server)
from a java applet (which is on the same server).

The connection works and i can make some queries without problem :)

BUT some of these queries are made thanks to Access functions in VBA
and when i execute them an exception is thrown ... :

java.sql.SQLException: [Microsoft][Pilote ODBC Microsoft Access]
Fonction 'TempsOuvre' non définie dans l'expression.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:
338)
at
sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:
253)

How can I execute these queries ? Is there any way to load these
functions ?

You can not use VBA functions when accessing a Jet database via
ODBC.

You will need to move functionality from the database to
the application.

Arne

PS: The JDBC-ODBC bridge is not suited for production usage.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top