I need a VB 6 app to automate a microsoft access MDB application.
Specifically, it needs to open a form in Access and read information
keyed into that form. I know this is "old school" but I'm thinking
about something like we used to do using DDE.
Any ideas would be great 7 1687
If you want to open a form, have the user key in information, and return
that information to VB6 app, why not use a VB6 form?
If you want to read data out of an MS Access table, why automate Access,
when you can just use ADO to read the table?
- Turtle
"Mike Dwyer" <bd*****@hotmai l.com> wrote in message
news:fc******** *************** ***@posting.goo gle.com... I need a VB 6 app to automate a microsoft access MDB application. Specifically, it needs to open a form in Access and read information keyed into that form. I know this is "old school" but I'm thinking about something like we used to do using DDE.
Any ideas would be great
"MacDermott " wrote If you want to read data out of an MS Access table, why automate Access, when you can just use ADO to read the table?
Although you'd never know it from the Microsoft hype, you can just as easily
use DAO from VB6 to read the Access table.
The amazing thing to me is, given development schedules, when they were
pumping up the VB community about "classic ADO", they already knew that it
was to be succeeded by ADO.NET which is built on a different object model,
yet they still promoted it as "the access method of choice for the
foreseeable future" (just as they had promoted a number of other access
methods about which you no longer hear even a whisper from Redmond).
I can't remotely imagine a _need_ to open an Access form from VB in order to
read data keyed in to the form. It'd be less trouble, if it truly is data
keyed in by the user in real-time, to create a VB form for it.
Larry Linson
Microsoft Access MVP
As others have indicated, Mike, it is difficult to think of a scenario in
which this would be the best approach. If the Access form is a bound form,
then you can read the data from the table to which the form is bound. If the
Access form is unbound, it would be just as easy to re-create the form in
VB.
If you do decide to go the automation route, I doubt that DDE would be the
best route. I certainly couldn't help you with DDE, and I suspect that there
would be few people today who could - people with recent DDE experience are
pretty thin on the ground these days! :-) You can easily automate Access
either by setting a reference in your VB project to the Microsoft Access
Object Library or by using late binding (GetObject()). Once you've done
that, you have access (no pun intended) to the Access object model, much the
same as if you were writing VBA code in Access itself.
--
Brendan Reynolds
"Mike Dwyer" <bd*****@hotmai l.com> wrote in message
news:fc******** *************** ***@posting.goo gle.com... I need a VB 6 app to automate a microsoft access MDB application. Specifically, it needs to open a form in Access and read information keyed into that form. I know this is "old school" but I'm thinking about something like we used to do using DDE.
Any ideas would be great
Sorry guys, I'll expand on this...
Our customer has an Enterprise-wide application written in VB6. We
want to introduce (sell them) our own suite of tools which happen to
be written in VBA/Microsoft Access. The points of interface between
our apps are few but exist, nonetheless. Our customer will need to
invoke forms that do things in our MDB application and be able to
return the results they produce. Reading data tables alone will not
cut it. Their application will need to fire up a few forms as well.
There is considerable business logic in each of our respective
applications. Neither of us are going to rewrite our products just to
make this work. However, we need to tie them together somehow.
Because there are only a few interface points we felt that Access as
an automation server might just work.
"MacDermott " <ma********@nos pam.com> wrote in message news:<TH******* *********@newsr ead1.news.atl.e arthlink.net>.. . If you want to open a form, have the user key in information, and return that information to VB6 app, why not use a VB6 form?
If you want to read data out of an MS Access table, why automate Access, when you can just use ADO to read the table?
- Turtle
"Mike Dwyer" <bd*****@hotmai l.com> wrote in message news:fc******** *************** ***@posting.goo gle.com... I need a VB 6 app to automate a microsoft access MDB application. Specifically, it needs to open a form in Access and read information keyed into that form. I know this is "old school" but I'm thinking about something like we used to do using DDE.
Any ideas would be great
Well like I said, it's more than linking to the data. In our
situation, the form in Access creates a complicated real estate
appraisal on a property. There's a ton of business logic in Access
that gets executed in order to do this. It's more than just a simple
form recreated in VB. So, this VB program needs to invoke the process
in Access and retrieve the results. In effect, VB "pushes" access's
buttons. I've just solved the problem using the method you
mentioned--getobject. My app becomes an automation server and does
the neccessary steps. It's not a gracefull solution, but it gets the
job done and will help sell my product to my customer. It sure beats
throwing my hands up in the air or rewriting the entire app!
-Mike
"Brendan Reynolds" <br******@remov ethisindigo.ie> wrote in message news:<EH******* **********@news .indigo.ie>... As others have indicated, Mike, it is difficult to think of a scenario in which this would be the best approach. If the Access form is a bound form, then you can read the data from the table to which the form is bound. If the Access form is unbound, it would be just as easy to re-create the form in VB.
If you do decide to go the automation route, I doubt that DDE would be the best route. I certainly couldn't help you with DDE, and I suspect that there would be few people today who could - people with recent DDE experience are pretty thin on the ground these days! :-) You can easily automate Access either by setting a reference in your VB project to the Microsoft Access Object Library or by using late binding (GetObject()). Once you've done that, you have access (no pun intended) to the Access object model, much the same as if you were writing VBA code in Access itself.
-- Brendan Reynolds
"Mike Dwyer" <bd*****@hotmai l.com> wrote in message news:fc******** *************** ***@posting.goo gle.com... I need a VB 6 app to automate a microsoft access MDB application. Specifically, it needs to open a form in Access and read information keyed into that form. I know this is "old school" but I'm thinking about something like we used to do using DDE.
Any ideas would be great
My preference would be to move that code into generic procedures, replacing
any direct references to form controls with parameters passed to the
procedures. Then the same code could be used in either Access or VB. But if
automation works for you, cool - you could postpone the more elegant
solution as an enhancement to the next version! :-)
--
Brendan Reynolds
"Mike Dwyer" <bd*****@hotmai l.com> wrote in message
news:fc******** *************** **@posting.goog le.com... Well like I said, it's more than linking to the data. In our situation, the form in Access creates a complicated real estate appraisal on a property. There's a ton of business logic in Access that gets executed in order to do this. It's more than just a simple form recreated in VB. So, this VB program needs to invoke the process in Access and retrieve the results. In effect, VB "pushes" access's buttons. I've just solved the problem using the method you mentioned--getobject. My app becomes an automation server and does the neccessary steps. It's not a gracefull solution, but it gets the job done and will help sell my product to my customer. It sure beats throwing my hands up in the air or rewriting the entire app!
-Mike
"Brendan Reynolds" <br******@remov ethisindigo.ie> wrote in message
news:<EH******* **********@news .indigo.ie>... As others have indicated, Mike, it is difficult to think of a scenario
in which this would be the best approach. If the Access form is a bound
form, then you can read the data from the table to which the form is bound. If
the Access form is unbound, it would be just as easy to re-create the form
in VB.
If you do decide to go the automation route, I doubt that DDE would be
the best route. I certainly couldn't help you with DDE, and I suspect that
there would be few people today who could - people with recent DDE experience
are pretty thin on the ground these days! :-) You can easily automate Access either by setting a reference in your VB project to the Microsoft Access Object Library or by using late binding (GetObject()). Once you've done that, you have access (no pun intended) to the Access object model, much
the same as if you were writing VBA code in Access itself.
-- Brendan Reynolds
"Mike Dwyer" <bd*****@hotmai l.com> wrote in message news:fc******** *************** ***@posting.goo gle.com... I need a VB 6 app to automate a microsoft access MDB application. Specifically, it needs to open a form in Access and read information keyed into that form. I know this is "old school" but I'm thinking about something like we used to do using DDE.
Any ideas would be great bd*****@hotmail .com (Mike Dwyer) wrote: Sorry guys, I'll expand on this...
Our customer has an Enterprise-wide application written in VB6. We want to introduce (sell them) our own suite of tools which happen to be written in VBA/Microsoft Access. The points of interface between our apps are few but exist, nonetheless. Our customer will need to invoke forms that do things in our MDB application and be able to return the results they produce. Reading data tables alone will not cut it. Their application will need to fire up a few forms as well.
There is considerable business logic in each of our respective applications . Neither of us are going to rewrite our products just to make this work. However, we need to tie them together somehow. Because there are only a few interface points we felt that Access as an automation server might just work.
Could you folks write a VB DLL which they could call which would then validate the
date passed to it and update your tables? Seems to me this would not be that
difficult and would be much easier on all involved.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at http://www.granite.ab.ca/accsmstr.htm This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bettervssremoting |
last post by:
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
|
by: Simon Bailey |
last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have
a very simplified knowledge of databases overall. I would very much
appreciate a (simplifed) message explaining the advantages and
disadvantages of both programs.
Many Thanks
Simon
|
by: sm_hall |
last post by:
Hi,
I manage and develop an Access 2003/SQL 2000 based system for a real
estate company. It's quite extensive and has a level of Windows/Office
integration.
My question is this: what are the pros and cons of ditching Access in
favour of a web based front end?
Thanks,
|
by: John Baker |
last post by:
Hi:
I am URGENTLY in need of some book or web site OR tool that will help me integrate a
relatively simple access application into a web page or pages. This is a time recording
system (by project), and I would be more than wiling to pull the updated database down
from the Host using FTP on a monthly basis. Its just that I need to understand how to set
it up on the web site itself. The Host supports SQL.
Any direction you can give would...
|
by: Uwe Range |
last post by:
Hi to all!
A customer of mine told me some days ago that her IT-people told her
ACCESS would not be such a good idea for continuing with our project,
because Access will not be continued in the future. I haven't heard of
this. Does anybody know more about it?
The IT-People usually prefer Oracle. If they really want to go in this
direction, could our Access-application (if continued) be used as a
front end with an Oracle back end? Does...
| |
by: Tony Toews |
last post by:
http://msaccessadvisor.com/doc/16480
Selected quote:
With that climate and emphasis on integration in mind, can you give us any ideas of
what we might be able to expect in version 12?
RUCKER: We can talk about the next version of Access only to the extent of what
Richard McAniff said at the Office Developer's Conference back in February, which is
to say there is one. There's a large team working on it, much larger than there has
|
by: AnandaSim |
last post by:
I just had a google through this NG but have not seen mention of Erik
Rucker's blog entry and the new Jet:
http://blogs.msdn.com/access/archive/2005/10/05/477549.aspx
mentioned by Mike Gunderloy
http://www.larkware.com/dg4/TheDailyGrind726.html
Aside from the Sharepoint feature extension, amazing news.
|
by: com |
last post by:
Extreme Web Reports 2005 - Soft30.com
The wizard scans the specified MS Access database and records
information such
as report names, parameters and subqueries. ...
www.soft30.com/download-1-11975.htm - 31k - Cached - Similar pages
MDBSecure 1.0.8.0 - Soft30.com
Utility which makes it easy to create secure MS Access Databases, ...
MS Access
2000/2003 format. 30 day money back guarantee, 30 day trial. ...
|
by: bettervssremoting |
last post by:
To view the full article, please visit
http://www.BetterVssRemoting.com
Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere
and VSS Remoting
This article makes a detailed comparison among SourceAnyWhere,
SourceOffSite, VSS Remoting and possible others.
|
by: Kevin G. Anderson |
last post by:
What: CAUG Meeting - QuickBooks IIF Files; Total Access Analyzer; CAUG
Social
When: Thursday, May 25, 2006, 6PM
Who: Chris Monaghan and Kevin Anderson
Where: The Information Management Group
200 W. Monroe St. Suite 900
Chicago, IL 60606
(312) 222-9400
Location: www.imginc.com/IMG/About+IMG/chicago.htm
|
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,...
| |
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...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |