Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Calling Access module functions from python

Reply
Thread Tools

Calling Access module functions from python

 
 
kayakerjess
Guest
Posts: n/a
 
      09-21-2005
Hi,

I have an Access Data Project (.adp) that I am trying to open and
execute from Python. I am using the win32com.client, and I have
successfully opened the application, but I'm getting an exception when
I try to execute the function (actually a "Sub" that returns void, but
that shouldn't matter). Here's what I have so far:


conn=win32com.client.Dispatch('Access.Application' )
conn.OpenAccessProject("C:/path/to/file/filename.adp")
conn.Visible = 1
# works so far

conn.Run("test_interface")

# Exception is thrown here.
# com_error: (-2147352567, 'Exception occurred.', (0, None, None, None,
0, -2147352562), None)

The 'test_interface' function takes no arguments, but I've tried the
same thing with another function that does take arguments and gotten
the same result.

Any help would be appreciated.

Thanks,
kayakerjess

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Access module functions from python kayakerjess Python 1 09-23-2005 04:29 PM
Function pointers, variable argument functions calling other variable-argument functions (sort of) S?ren Gammelmark C Programming 1 01-07-2005 09:41 PM
please help me in distinguish redefining functions, overloading functions and overriding functions. Xiangliang Meng C++ 1 06-21-2004 03:11 AM
External inline functions calling internal inline functions Daniel Vallstrom C Programming 2 11-21-2003 01:57 PM
Re: Calling Excel module functions from python [repost] Mark Carter Python 1 07-11-2003 06:12 AM



Advertisments