User Profile
Collapse
-
due I don't want to read the entire database for processing in java. I was hoping the for that SQL statement sent, it would try to look in the module section when it saw this function call. -
MS Access, SQL and Java
I have defined a VBA function inside a module like this:
Public Function MyFunction() As Integer
MyFunction = 2
End Function
In my Java program i have the follow:
....
String query = "SELECT * FROM MyTable WHERE ID = MyFunction()";
....
statement.execu te(query);
.....
It is an MS-ACCESS database. I get the following error:
"function...
No activity results to display
Show More
Leave a comment: