473,670 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Access with VB for applications and python


For the first time, I am trying to program python in a windows-environment,
and now I am having some trouble with combining python and MS Access...

This is what I want to do:
A MS Access database is started, this database has numerous VB-forms, and
one of those forms calls my python-program, so far so good. But before my
python-program quits, I want to call one of the VB-forms in the database.
This I haven't been able to find out how to do.
The database cannot be closed, it has to run all the time while my
python-program is working.

So, if anyone can help me with this, I'll be very happy!

Kristin
Jul 18 '05 #1
1 1783
Uggen Kristin T <Kr************ *@sintef.no> wrote:

For the first time, I am trying to program python in a windows-environment,
and now I am having some trouble with combining python and MS Access...

This is what I want to do:
A MS Access database is started, this database has numerous VB-forms, and
one of those forms calls my python-program, so far so good. But before my
python-program quits, I want to call one of the VB-forms in the database.
This I haven't been able to find out how to do.


Do you mean you need to DISPLAY an Access form, or do you mean you need to
call a function in the associated code module?

The first can be done, by using the Access object model. The second is
more difficult. Access code modules are not COM objects, so you cannot
call directly into them from outside of Access.

However, through the object model, you should be able to use DoCmd, and
that lets you call a macro or a public function.

The Access object model is discussed on Microsoft's web site.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
7415
by: John Phelan | last post by:
I read an article by, by Mike Groh, in Access-VB-SQL Advisor Magazine, Week 37 that concerns me quite a bit on distributing Access Applications commercially. First I need to describe a "commercial version" of my application that I hope to distribute after completing all the beta testing: A. It was developed using MS AccessXP Pro (developers edition), B. It has a front end MyApplication.mdb and a MyAppBbackend_be.mde; the front end is...
7
1552
by: davdgreat | last post by:
Hello All, This is my first time actually posting a question to this group. Here is my situataion. I have an old access application that needs to be updated so that multiple developers are able to work on the program, be able to work in a disconnected mode. Meaning that a user could take the database anywhere on his laptop and not require a internet connection to use the system. Currently it is written in MS-Access 97 and MS-Access...
1
1381
by: Simeon Nevel | last post by:
Can anyone recommend a good book (or three) with in-depth coverage of developing turn-key Access applications? Simeon
0
1240
by: Scot | last post by:
With multiple access applications running how do you reference a particular field on a particular form in a particular application from a Word Document. The code below retrieves the information I want when only one access application is running but I need to collect the information from database : Schedule.mdb form : frmDataentry field : txtAppid when multiple applications are running.
3
2444
by: Todd D. Levy | last post by:
What do I need to get (from Microsoft I assume) in order to distribute stand alone Access applications to people who do not (and will not) have Access installed on their systems? I have heard about Run Time modules, but am unsure of what they are and how they are obtained. Is there a cost associated with this?
2
1231
by: John Baker | last post by:
Hi: Can someone tell me a good (not too technical) manual or guide for developing Access applications to be used over the web. We expect to have a number of associates who will be reporting time, and getting status information, from a web base Access application. As far as my experience, I have developed a number of fully functional web sites (html) and have developed a couple of Access applications (PC and server based), but have never...
0
1135
by: Ben | last post by:
Hi all, I'm looking for examples of off-the-shelf business to business (b2b) access applications. The scope of my investigation is pretty broad so any examples would be of a great deal of help. Run-time applications would be super terrific but any will do. You can reach me at benben999 at excite.com (at means @ :) ). Thank you, Ben
2
1330
by: Mike Ridley | last post by:
I have a database of Access tables on the server and ODBC links to legacy systems. This is not too much of a problem as, at least, I have my tables/files in 2 distinct places. Unfortunately as seperate applications are required, separate program databases have been created. Some users have their desktops littered with short cuts pointing to applications or parts of applications. What I want is an all-encompassing menu system (with...
13
3981
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate button "Unexpected Error":3251 operation is not supported for this type of object.The demo cd has two databases, one is called inventory and the other just has the tables for the design called inventory data. When you run inventory the database works...
6
1746
by: SAMI2 | last post by:
Hi Friends, can I deploy MS access applications as wibpage over an intranet without using ASP, PHP etc..... thanks
0
8471
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8903
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8815
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7421
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6216
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4393
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1795
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.