A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/352521.html below:

Calling Access module functions from python

Calling Access module functions from pythonkayakerjess kayakerjess at hotmail.com
Wed Sep 21 11:44:48 EDT 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


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4