473,396 Members | 1,693 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,396 software developers and data experts.

link to form in other db

Hi,

Is it (in Access2003) possible yo link from a form in db1 to a form in db2?

Thanks,

Susan
Oct 31 '08 #1
10 1816
"susan" <vd*@hotmail.comwrote in message
news:bb***************************@cache5.tilbu1.n b.home.nl...
Hi,

Is it (in Access2003) possible yo link from a form in db1 to a form in
db2?
You can link tables, is that what you mean? What is it you're trying to
achieve?

Keith.
www.keithwilby.co.uk

Oct 31 '08 #2

"Keith Wilby" <he**@there.comschreef in bericht
news:49**********@glkas0286.greenlnk.net...
"susan" <vd*@hotmail.comwrote in message
news:bb***************************@cache5.tilbu1.n b.home.nl...
>Hi,

Is it (in Access2003) possible yo link from a form in db1 to a form in
db2?

You can link tables, is that what you mean? What is it you're trying to
achieve?

Keith.
www.keithwilby.co.uk
db1 is a MDE. I distributed this to several users. There are users who want
to have extra options. I want to give them this possibility to let them
build themselves these extensions. Yherefor I want to create a commandbutton
"Extra" in db1 which links to a Form "MyExtras"in db2. From this form the
user can build his own extra functionality.
Oct 31 '08 #3
"susan" <vd*@hotmail.comwrote in message
news:66***************************@cache1.tilbu1.n b.home.nl...
>
"Keith Wilby" <he**@there.comschreef in bericht
news:49**********@glkas0286.greenlnk.net...
>"susan" <vd*@hotmail.comwrote in message
news:bb***************************@cache5.tilbu1. nb.home.nl...
>>Hi,

Is it (in Access2003) possible yo link from a form in db1 to a form in
db2?

You can link tables, is that what you mean? What is it you're trying to
achieve?

Keith.
www.keithwilby.co.uk

db1 is a MDE. I distributed this to several users. There are users who
want to have extra options. I want to give them this possibility to let
them build themselves these extensions. Yherefor I want to create a
commandbutton "Extra" in db1 which links to a Form "MyExtras"in db2. From
this form the user can build his own extra functionality.
You can't make design changes to forms in an MDE. The scenario you describe
is an unorthadox one and you leave yourself open to a version control
nightmare. What happens when you change your design master and distribute a
new MDE file? If the user *could* change the MDE then their changes would
be wiped out by the new file.

If your users want additional functionality then why not design it into your
master file?

Keith.
www.keithwilby.co.uk

Oct 31 '08 #4

"Keith Wilby" <he**@there.comschreef in bericht
news:49**********@glkas0286.greenlnk.net...
"susan" <vd*@hotmail.comwrote in message
news:66***************************@cache1.tilbu1.n b.home.nl...
>>
"Keith Wilby" <he**@there.comschreef in bericht
news:49**********@glkas0286.greenlnk.net...
>>"susan" <vd*@hotmail.comwrote in message
news:bb***************************@cache5.tilbu1 .nb.home.nl...
Hi,

Is it (in Access2003) possible yo link from a form in db1 to a form in
db2?
You can link tables, is that what you mean? What is it you're trying to
achieve?

Keith.
www.keithwilby.co.uk

db1 is a MDE. I distributed this to several users. There are users who
want to have extra options. I want to give them this possibility to let
them build themselves these extensions. Yherefor I want to create a
commandbutton "Extra" in db1 which links to a Form "MyExtras"in db2. From
this form the user can build his own extra functionality.

You can't make design changes to forms in an MDE. The scenario you
describe is an unorthadox one and you leave yourself open to a version
control nightmare. What happens when you change your design master and
distribute a new MDE file? If the user *could* change the MDE then their
changes would be wiped out by the new file.

If your users want additional functionality then why not design it into
your master file?

Keith.
www.keithwilby.co.uk
The users can't change the MDE (db1) but can change / build his forms in db2
(MDB). So I always keep my basic MDE. The personal additions are build in
dv2 and can be very different for each user.
When I modify and distribute a new MDE all the extras in the MDB can still
be used because of the link between db1 (MDE) and db2 (MDB).
Oct 31 '08 #5
"susan" <vd*@hotmail.comwrote in message
news:a0**************************@cache6.tilbu1.nb .home.nl...
>

The users can't change the MDE (db1) but can change / build his forms in
db2 (MDB). So I always keep my basic MDE. The personal additions are
build in dv2 and can be very different for each user.
When I modify and distribute a new MDE all the extras in the MDB can still
be used because of the link between db1 (MDE) and db2 (MDB).

Try this:

Dim objAccess As Access.Application
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase "\\MyPath\db2.mdb"
objAccess.Visible = True
objAccess.DoCmd.OpenForm "frmMyExtras", acViewNormal

Keith.

Oct 31 '08 #6

"Keith Wilby" <he**@there.comschreef in bericht
news:49**********@glkas0286.greenlnk.net...
"susan" <vd*@hotmail.comwrote in message
news:a0**************************@cache6.tilbu1.nb .home.nl...
>>

The users can't change the MDE (db1) but can change / build his forms in
db2 (MDB). So I always keep my basic MDE. The personal additions are
build in dv2 and can be very different for each user.
When I modify and distribute a new MDE all the extras in the MDB can
still be used because of the link between db1 (MDE) and db2 (MDB).


Try this:

Dim objAccess As Access.Application
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase "\\MyPath\db2.mdb"
objAccess.Visible = True
objAccess.DoCmd.OpenForm "frmMyExtras", acViewNormal

Keith.
Thanks Keith!

This works fine.
Is it also possible to open the form in the current application in stead of
a new application?

Oct 31 '08 #7
"susan" <vd*@hotmail.comwrote in
news:49***************************@cache6.tilbu1.n b.home.nl:
Is it also possible to open the form in the current application in
stead of a new application?
In [Northwinds 2007] I
1. Ensure that the Form “Customer Details” has a module, or has its
HasModule Property set to True.
2. I write this function:

Public Function GetCustomerDetails() As Form
Set GetCustomerDetails = [Form_Customer Details]
End Function

I close [Northwinds 2007]

In another database I set a reference to [Northwinds 2007]. (This may fail
if the already existing references of the two dbs are inconsistent so these
may have to be reconciled, example, making sure they are both referencing
the same version of ADODB.)

In the “another” database I write this function:

Public Sub ShowCustomerDetails()
Dim CustomerDetails As Form
Set CustomerDetails = [Northwind 2007].GetCustomerDetails
CustomerDetails.Visible = True
End Sub

ShowCustomerDetails now opens the Northwoods 2007 form, “Customer Details”.

Many will prefer putting a DoCmd.OpenForm etc. Procedure in Northwinds.

--
lyle fairfield
Oct 31 '08 #8
lyle fairfield wrote:
>"susan" <vd*@hotmail.comwrote
>Is it also possible to open the form in the current application in
stead of a new application?

In [Northwinds 2007] I
1. Ensure that the Form “Customer Details” has a module, or has its
HasModule Property set to True.
2. I write this function:

Public Function GetCustomerDetails() As Form
Set GetCustomerDetails = [Form_Customer Details]
End Function

I close [Northwinds 2007]

In another database I set a reference to [Northwinds 2007]. (This may fail
if the already existing references of the two dbs are inconsistent so these
may have to be reconciled, example, making sure they are both referencing
the same version of ADODB.)

In the “another” database I write this function:

Public Sub ShowCustomerDetails()
Dim CustomerDetails As Form
Set CustomerDetails = [Northwind 2007].GetCustomerDetails
CustomerDetails.Visible = True
End Sub

ShowCustomerDetails now opens the Northwoods 2007 form, “Customer Details”.

Many will prefer putting a DoCmd.OpenForm etc. Procedure in Northwinds.

Lyle, the trouble I have with a form/report kind of library
is figuring out how to set the form's record source to use a
table in the back end db. A single use library, such as
susan seems to need, can just link to the same tables as the
front end mde, but a multi purpose library has no idea
what/where back end tables/queries exist and IIRC always
uses its own db for its record source references to
tables/queries. Does anyone have a way to deal with this
issue?

--
Marsh
Nov 1 '08 #9
On Nov 1, 3:07*pm, Marshall Barton <marshbar...@wowway.comwrote:
lyle fairfield wrote:
"susan" <v...@hotmail.comwrote
Is it also possible to open the form in the current application in
stead of a new application?
In [Northwinds 2007] I
1. Ensure that the Form “Customer Details” has a module, or has its
HasModule Property set to True.
2. I write this function:
Public Function GetCustomerDetails() As Form
* *Set GetCustomerDetails = [Form_Customer Details]
End Function
I close [Northwinds 2007]
In another database I set a reference to [Northwinds 2007]. (This may fail
if the already existing references of the two dbs are inconsistent so these
may have to be reconciled, example, making sure they are both referencing
the same version of ADODB.)
In the “another” database I write this function:
Public Sub ShowCustomerDetails()
* *Dim CustomerDetails As Form
* *Set CustomerDetails = [Northwind 2007].GetCustomerDetails
* *CustomerDetails.Visible = True
End Sub
ShowCustomerDetails now opens the Northwoods 2007 form, “Customer Details”.
Many will prefer putting a DoCmd.OpenForm etc. Procedure in Northwinds.

Lyle, the trouble I have with a form/report kind of library
is figuring out how to set the form's record source to use a
table in the back end db. *A single use library, such as
susan seems to need, can just link to the same tables as the
front end mde, but a multi purpose library has no idea
what/where back end tables/queries exist and IIRC always
uses its own db for its record source references to
tables/queries. *Does anyone have a way to deal with this
issue?

--
Marsh
Years ago, with Access 97, we could fully expose forms. When we
referenced a db with exposed forms all their properties and methods
were available. But I have had no sucess in duplicating this complete
exposure with later Access versions.
Even when the external form can be opened, and its recordsource set,
it is, often (always?), not editable.
So, I tend to apply particular solutions to particular problems.
Sometimes my solution is to link to an ADP form and to set the form's
recordset to an ADODB recordset. This is highly configurable and the
data are completely editable.
Nov 2 '08 #10
lyle fairfield wrote:
>On Nov 1, 3:07*pm, Marshall Barton wrote:
>Lyle, the trouble I have with a form/report kind of library
is figuring out how to set the form's record source to use a
table in the back end db. *A single use library, such as
susan seems to need, can just link to the same tables as the
front end mde, but a multi purpose library has no idea
what/where back end tables/queries exist and IIRC always
uses its own db for its record source references to
tables/queries. *Does anyone have a way to deal with this
issue?

Years ago, with Access 97, we could fully expose forms. When we
referenced a db with exposed forms all their properties and methods
were available. But I have had no sucess in duplicating this complete
exposure with later Access versions.
Even when the external form can be opened, and its recordsource set,
it is, often (always?), not editable.
So, I tend to apply particular solutions to particular problems.
Sometimes my solution is to link to an ADP form and to set the form's
recordset to an ADODB recordset. This is highly configurable and the
data are completely editable.

That's the kind of thing I was leaning towards. Thanks for
the followup response, it's good to know that I wasn't
missing something obvious.

--
Marsh
Nov 2 '08 #11

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

Similar topics

1
by: Andrew V. Romero | last post by:
I have a script that I am working on for an intranet tool and in this script I have a form, which when submitted the onSubmit command calls calculate(). In this calculate function, I have it do...
2
by: Matt | last post by:
Can we click a link and it will submit the form to the other page? Usually we will submit the form to other page by clicking a submit button. Now I need to do the following, but what if I have...
7
by: Lisa | last post by:
I have an Access 2000 application that uses the following function to re-link my tables when I switch from my Current back end to a Dummy back end. I also use it to refresh my links. Function...
2
by: Timbo | last post by:
Hi there, I’m not used to working in VB and I think this situation calls for excactly that. I use Access 97 SR-2. My first table is a table containing all the Tickets I got. The field ”Ticket”...
4
by: kschneider | last post by:
Assume there's a form with it's action attribute all set to post to a URL, but without a submit control. Form submission is done via a link and I want to prevent the classic "double submit"....
0
by: colleen1980 | last post by:
Macro and button all works fine. It goes to other database and open the form from their. Now only problem is that there are two forms link to each other. When i click on the button it works fine...
2
by: Gregor Horvath | last post by:
Hi, As I am no expert web programmer I thought I'd better ask the experts if there is a simpler or better solution to my problem than the one I am thinking of. (using TurboGears) The problem...
11
by: yangsuli | last post by:
i want to creat a link when somebody click the link the php script calls a function,then display itself :) i have tried <a href=<? funtion(); echo=$_server ?>text</a> but it will call the...
14
by: Wouter | last post by:
Hi, I try to make the follow. I want that i can click on a text link and that then a link wil be copyed in a input form box (<input type="text" name="img_url" />). I have google-ed about how...
12
by: prashant | last post by:
hi, i am trying to create an xml tag ref to hold link.php?id=1; or link.php?id=2 and so on. I want the links for all the fields(id) in the databse so that when i call them in my html page for...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
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...
0
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,...

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.