-
executing procedure in ms Access from VB6
Dear all,
I have a question about using ADO :
How can I call Ms Access procedure in module, e.g. : Module1.subTest(name
as string,address as string).
I have tried using this code :
dim adConnection as adodb.connection
...
adConnection.execute "module1.subTest " & strName & ", " & strAddress
....
but it didn't work...
thank you
Ery d
-
Re: executing procedure in ms Access from VB6
On 13 Jun 2000 00:57:35 -0700, "ery d" <edwiyanto@yahoo.com> wrote:
¤
¤ Dear all,
¤
¤ I have a question about using ADO :
¤ How can I call Ms Access procedure in module, e.g. : Module1.subTest(name
¤ as string,address as string).
¤ I have tried using this code :
¤ dim adConnection as adodb.connection
¤
¤ ..
¤ adConnection.execute "module1.subTest " & strName & ", " & strAddress
Can't do this using ADO, you must use automation:
VBA: How to Run Macros in Other Office Programs
http://support.microsoft.com/support.../Q177/7/60.ASP
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
-
Re: executing procedure in ms Access from VB6
>How can I call Ms Access procedure in module,
You can't.
--
Anthony Jones
Secta Group Ltd
-
Re: executing procedure in ms Access from VB6
may sound a bit backward, but could you try DAO? works great with access,
not surprisingly.
"ery d" <edwiyanto@yahoo.com> wrote:
>
>Dear all,
>
>I have a question about using ADO :
>How can I call Ms Access procedure in module, e.g. : Module1.subTest(name
>as string,address as string).
>I have tried using this code :
>dim adConnection as adodb.connection
>
>...
>adConnection.execute "module1.subTest " & strName & ", " & strAddress
>....
>
>but it didn't work...
>
>thank you
>
>Ery d
-
Re: executing procedure in ms Access from VB6
Nope thar won't help either. The only way to execute a procedure in an
access module is to automate a copy of Access to execute the procedure.
--
Anthony Jones
Secta Group Ltd
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|