******************************
Elvis Poprzenovic
LACO Technologies
www.lacotech.com
elvisp@lacotech.com
801 486-1004
Fax 801 486-1007
******************************
Attention: Jeremy Licup
Hello Jeremy,
I e-mailed you two weeks ago, and probably you have not received my e-mail
for some reason.
Anyway, thank you very much for your response. Let me tell you first what
exactly we are trying to do. We have automated one of our systems for leak
standards calibration, and it works very well. However, we need to store
our
results in our database (Access), and reading from tables, writing to
tables
and running queries work fine. However, we want to print our calibration
certificates and stickers from Access, and to do that we need to run a VBA
procedure from Labview.
I have tried that Call_Stored_Procedure vi. as it is - I have just changed
the name of the database and in SQL query field I�ve put the name of our
procedure and it did not work. My error message says that I should use
PROCEDURE, SELECT or UPDATE, and I have tried them (for example I typed
SELECT �procedure name�, and similar), and nothing worked. In that example
they use statement {call sp_helpuser (?)},I�ve tried it and it does not
work, and I don�t know if I should use a similar statement, but I don�t
know
much about SQL statements, and that may be my problem.
I have also tried to use just Execute query vi, with Free Object vi, after
it and it executes a regular query fine, but if a query has a function than
it does not work, also it does not work with VBA procedures.
As for Active X, I don�t know exactly how to use that palette, and I would
appreciate a lot if you could send me a step-by-step instructions on how to
use them (assume that I don�t know anything). I have been blindly
experimenting with them, and probably I was doing it wrong. I would also
like to know how to use Run Macro vi in Active X.
Also I tried System Exec vi, but the problem is that all those VBA
procedures in Access have just a general, but not a specific path, so this
approach didn�t work neither.
I think that the best way to help me would be to create some dummy Access
Database and a dummy VBA procedure in Modules section of your database, and
then try to execute it from a LabView program. After you have it working,
please e-mail me your program. I believe it should be a rather simple
program, and I just don't know a trick to make it work.
Jeremy, thank you very much for your help!!!
Best Regards