473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

can I access a form in an mdb from another mdb

I have 2 mdbs (one is a menu system - system.mdb, the second is an
inventory subsystem - inventory.mdb) and there will be more subsystems

the system.mdb knows what forms / reports / submenus / etc to display
and it displays its own objects

now I want to open and use forms in inventory.mdb without using
createObject(access.application..) which opens a separate copy of
inventory.mdb

so in system.mdb, I 'referenced' inventory.mdb and
in inventory.mdb, I created an openForm function that does
docmd.openform....

this works ok for simple forms like 'unit of measure' that have an id
& description

but if the form uses DLookup(), I get an error saying that the table
cannot be found... note... system.mdb does NOT have links to
inventory.mdb tables (and I don't really want to set them up, but...)

does anyone have any ideas on how else to do this ?
Nov 12 '05 #1
1 1731
On 5 Jan 2004 18:05:50 -0800, le*********@natpro.com (Roger) wrote:

If you don't like CreateObject, use GetObject. Then if GetObject
fails, you can fall back on CreateObject.

The accounting software UA is set up the way you are describing.

-Tom.

I have 2 mdbs (one is a menu system - system.mdb, the second is an
inventory subsystem - inventory.mdb) and there will be more subsystems

the system.mdb knows what forms / reports / submenus / etc to display
and it displays its own objects

now I want to open and use forms in inventory.mdb without using
createObject(access.application..) which opens a separate copy of
inventory.mdb

so in system.mdb, I 'referenced' inventory.mdb and
in inventory.mdb, I created an openForm function that does
docmd.openform....

this works ok for simple forms like 'unit of measure' that have an id
& description

but if the form uses DLookup(), I get an error saying that the table
cannot be found... note... system.mdb does NOT have links to
inventory.mdb tables (and I don't really want to set them up, but...)

does anyone have any ideas on how else to do this ?


Nov 12 '05 #2

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

Similar topics

11
by: David W. Fenton | last post by:
I'm working in Access 2K quite a bit lately (with only my second project that is 100% A2K), and I've run into a number of odd problems that seem to be associated with running code. The most...
2
by: Iain Miller | last post by:
Struggling a bit here & would be grateful for any help. I have a table which has a list of people in it. Each person has a unique ID automatically allocated by Access but also belongs to one of 5...
4
by: intl04 | last post by:
How do I create a data input form in Access that is external to the Access database to which it's connected (if that's possible, which I believe it is)? For example, if someone clicks on an Access...
13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
55
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...
4
by: JimC | last post by:
On my main form in a C# program, I create an instance of another form that contains a ListView control, in the usual way, that is: public class frmMain : System.Windows.Forms.Form { // ...
8
by: Sid | last post by:
I hope someone could help me with this. I am trying to setup a criteria to decide when to allow/not allow user to click on the check box. logically it looks simple but I am not able to...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Thank you for that. It was very...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
tracyyun
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...

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.