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

Is there a way to manual type the FE/BE link?

Is this possible? Instead of using the link wizard, can the FE/BE
link be established any other way that users can simply type the link
path?

Thanks,
Perry

May 24 '07 #1
4 1821
On May 24, 10:31 am, perry...@yahoo.com wrote:
Is this possible? Instead of using the link wizard, can the FE/BE
link be established any other way that users can simply type the link
path?

Thanks,
Perry
Here's a short snippet of code, the actual piece that does it all
spans about 10 different functions and requires a class module:

Set AdCat = CreateObject("ADOX.Catalog")
AdCat.activeconnection = LINK_SRC_ACCESS & "Data Source=" &
CurrentDb.NAme & ";"
If AdCatSrc Is Nothing Then GoTo Done

For Each AdSrc In AdCatSrc.TABLES
If Cancel = True Then Exit For
Link.tableName = AdSrc.NAme
Select Case Link.LinkType
Case LinkType.LNK_ACCESS
If (AdSrc.Properties("Jet OLEDB:Table Hidden In Access").Value
= False Or IncludeHidden = True) And UCase(LEFT(Link.tableName, 4)) <>
"MSYS" And AdSrc.Properties("Jet OLEDB:Create Link") = False Then
Set AdTbl = CreateObject("ADOX.Table")
With AdTbl
.NAme = Link.Prefix & Link.tableName & Link.Suffix
Set .ParentCatalog = AdCat
.Properties("Jet OLEDB:Create Link") = True
.Properties("Jet OLEDB:Link Datasource") =
Link.Database
.Properties("Jet OLEDB:Remote Table Name") =
Link.tableName
End With
AdCat.TABLES.Append AdTbl
RaiseEvent TableLinked("ACCESS", Link.Prefix &
Link.tableName & Link.Suffix, Link.tableName)
End If
That should get ya started, or you can just continue to use the
wizard. ;o)

May 24 '07 #2
WOW, thanks, but perhaps more than what I can handle. Just to wrap
my brain around this, where should I put these codes? In a form that
open with the database but hidden? Or should it be in the module?
How to define the link?

Perry

May 24 '07 #3
On 24 May 2007 07:31:08 -0700, pe******@yahoo.com wrote:
Is this possible? Instead of using the link wizard, can the FE/BE
link be established any other way that users can simply type the link
path?

Thanks,
Perry
It is possible - but you must code in vba to make it.
I have made a backend switching facility in a program - can't remenber
where i read about it first - perhaps it was here:
http://www.mvps.org/access/tables/tbl0009.htm
--
Mvh
Benny Andersen
May 25 '07 #4
Hi

I think its easier to link in manually

by linking the FE to tha tables in the BE wherever it is ...

Hany
www.access-forum.com

Benny Andersen :
On 24 May 2007 07:31:08 -0700, pe******@yahoo.com wrote:
Is this possible? Instead of using the link wizard, can the FE/BE
link be established any other way that users can simply type the link
path?

Thanks,
Perry

It is possible - but you must code in vba to make it.
I have made a backend switching facility in a program - can't remenber
where i read about it first - perhaps it was here:
http://www.mvps.org/access/tables/tbl0009.htm
--
Mvh
Benny Andersen
May 26 '07 #5

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

Similar topics

5
by: Glenn | last post by:
I've RTFM'd and searched google and Zend and still am having a problem loading php_mssql.dll. First, background: I'm using PHP Version 4.3.10 Apache/2.0.52 MySQL Server 4.1 Windows 2000...
2
by: Gordan | last post by:
I have html_errors set On and it's visible that it's on because I get some parts of the error messages bold. The problem is I can't get any links to point to the PHP manual. docref_root =...
5
by: Joe Green | last post by:
When I do a: import socket print socket.socket().recv.__doc__ it tells me to look in the Unix manual. What is it on about, and is this manual online? I am generally struggeling with the...
2
by: Gunnar | last post by:
Hello, I've just written a CPP program that reads integers from a binary file, and used this code while (my_ifstram.read( (char* ) &number, sizeof(int)) { // do something with number } My...
1
by: John Baker | last post by:
HI: Does anyone know a good manual or web site that addresses the development of applications using the Data Access Capability (HTM) in Access. I need to have something on a web site that, at...
8
NeoPa
by: NeoPa | last post by:
I'm looking for an electronic version of the manual for this tool. I can't believe how prevalent the references are for it, but finding a manual seems beyond my searching capabilities. If anyone...
5
by: broli | last post by:
http://www.delorie.com/djgpp/doc/libc-2.02/
34
Paul NIcolai Sunga
by: Paul NIcolai Sunga | last post by:
here's the code for retrieving the info in the pic..but the info in filedata only showing a set of strings.. <?php $Link = mysqli_connect("localhost","root","tupi", "amyak_maleh");...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.