I would like to be able to call functions that exist in an access database from my vb application. What is the best way to go about this? Any help you can give would be appreciated. The hardest questions always have the easiest answers.
If by call functions that exist in an access database you mean to you want to execute queries that have been defined in the database, then you can do something like the following:
The SQL statement is surrounded by curly braces (may be hard to see in the post) and the parameter list (if any) is surround by parentheses Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
Thank you for the responses, let me give a few more details on what I want to do. I have and Access 97 database backend with a visual basic frontend. I would like to be able to print Access reports without allowing users access to the backend database. In order to do this I would need to call a PrintReport() function that exists in my Access database from my VB application. The hardest questions always have the easiest answers.
hmm, if the users have the ACCESS run time files on their PC then you can do this with the Microsoft Access X.xx Object library. Set a reference to it and create the object.
If they do not have the run time files, then you may want to consider using the Access SnapShotViewer:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.