473,508 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to link to backends on another computer with A2003

I just got Access 2003 and have been playing around with it. This whole
macro security thing can be a bit annoying.

Initially, I was able to link to my backends located on a second computer.
Then after I compacted the backends on the other computer and I think I also
tired of the macro security message on Access 2003 and selected to not run
unsafe expressions.

Now I cannot link to the backends on the second computer from the computer
running A2003. I have RWOP queries with all permissions on the backend
tables revoked.

Here's some of the code that I have that does the linking:

'Open the backend db and set the current db
Set wsOPEN = DBEngine.Workspaces(0)
Set dbOPEN = wsOPEN.OpenDatabase(strX)
Set db = CurrentDb()

'Now link the tables
For k = dbOPEN.TableDefs.Count - 1 To 0 Step -1

where strX is the location of the backend file.

At the last line shown, for some reason I'm now seeing

dbOPEN.TableDefs.Count = <Object variable or With block variable not set>

I've never had this problem before using both A2K and A2002. Also, I have
A2K on the second computer where the backends are located. I have no trouble
linking to the backends on that second computer using my application running
in A2K on that second computer.

I have no clue why this is suddenly not working. I guess it must have
something to do with A2003.

Help is greatly appreciated as I am at a loss.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200602/1
Feb 27 '06 #1
3 1918
On Mon, 27 Feb 2006 06:54:12 GMT, "rdemyan via AccessMonster.com"
<u6836@uwe> wrote:

If you only open MDBs that you trust, and not ones sent to you via
anonymous email, then you can set the macro security (Tools > Macro >
Security) to Low.

-Tom.
I just got Access 2003 and have been playing around with it. This whole
macro security thing can be a bit annoying.

Initially, I was able to link to my backends located on a second computer.
Then after I compacted the backends on the other computer and I think I also
tired of the macro security message on Access 2003 and selected to not run
unsafe expressions.

Now I cannot link to the backends on the second computer from the computer
running A2003. I have RWOP queries with all permissions on the backend
tables revoked.

Here's some of the code that I have that does the linking:

'Open the backend db and set the current db
Set wsOPEN = DBEngine.Workspaces(0)
Set dbOPEN = wsOPEN.OpenDatabase(strX)
Set db = CurrentDb()

'Now link the tables
For k = dbOPEN.TableDefs.Count - 1 To 0 Step -1

where strX is the location of the backend file.

At the last line shown, for some reason I'm now seeing

dbOPEN.TableDefs.Count = <Object variable or With block variable not set>

I've never had this problem before using both A2K and A2002. Also, I have
A2K on the second computer where the backends are located. I have no trouble
linking to the backends on that second computer using my application running
in A2K on that second computer.

I have no clue why this is suddenly not working. I guess it must have
something to do with A2003.

Help is greatly appreciated as I am at a loss.


Feb 27 '06 #2
Tom:

I did change the Security level to "Low" and am still having the same problem.
Here's something strange. I made copies of the back-end files (that I'm
having trouble linking to) and put the copies in a new folder on the 2nd
computer. Now, I can link to these copies???!

As far as I can tell there is no difference between the two folders with
regards to security, but I really don't know much at all about folder
security in Windows XP Home Edition.

I just deleted all links in my application. Then I used my custom link
manager to attempt to relink. I pointed to the original file folder on the
2nd machine and now I'm getting an error that says the file path is invalid.
But I used a file dialog window to find it so it must be valid. Then I
switched to the new folder on the 2nd machine with the copies of the backend
files. Linking occurred just fine.

I'd appreciate it if someone could help me try to understand more about what
happened, even if we ultimately can't discover what the real problem is. I'm
not sure what to do now.

Thanks.

Tom van Stiphout wrote:
If you only open MDBs that you trust, and not ones sent to you via
anonymous email, then you can set the macro security (Tools > Macro >
Security) to Low.

-Tom.

I just got Access 2003 and have been playing around with it. This whole
macro security thing can be a bit annoying.

[quoted text clipped - 33 lines]

Help is greatly appreciated as I am at a loss.


--
Message posted via http://www.accessmonster.com
Feb 27 '06 #3
Okay. Here's some more information. I took the backend files in the
original folder on the 2nd computer and moved them (not copied) into a new
folder on the 2nd machine. Everything is working fine and A2003 is able to
link.

Something must have happened to that original folder that prevented A2003 on
the 1st computer from accessing the files located in the folder. It's
strange because A2K had no problem linking to the backend files located in
the original folder.

I guess there must be some things I don't understand about Windows XP folders.
If someone could enlighten me or provide me with some resources, I would
greatly appreciate it. Thanks.

rdemyan wrote:
Tom:

I did change the Security level to "Low" and am still having the same problem.

Here's something strange. I made copies of the back-end files (that I'm
having trouble linking to) and put the copies in a new folder on the 2nd
computer. Now, I can link to these copies???!

As far as I can tell there is no difference between the two folders with
regards to security, but I really don't know much at all about folder
security in Windows XP Home Edition.

I just deleted all links in my application. Then I used my custom link
manager to attempt to relink. I pointed to the original file folder on the
2nd machine and now I'm getting an error that says the file path is invalid.
But I used a file dialog window to find it so it must be valid. Then I
switched to the new folder on the 2nd machine with the copies of the backend
files. Linking occurred just fine.

I'd appreciate it if someone could help me try to understand more about what
happened, even if we ultimately can't discover what the real problem is. I'm
not sure what to do now.

Thanks.
If you only open MDBs that you trust, and not ones sent to you via
anonymous email, then you can set the macro security (Tools > Macro >

[quoted text clipped - 7 lines]

Help is greatly appreciated as I am at a loss.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200602/1
Feb 27 '06 #4

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

Similar topics

3
2511
by: w | last post by:
Hello all!!! For a year and a half now, we have been developing different Access 2000 applications. Most of them are access frontend and access backends. Some of them have SQL server 2000 as a...
5
11008
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
7
5926
by: Sean | last post by:
Hi I've written an HTML page that has a link to an MPG file, to be burned onto a "Demo CD". The MPG file is quite big - 500MB. On my computer, it works fine - clicking the link opens up Windows...
8
16215
by: ZRexRider | last post by:
Hi, I have an application that uses MS-SQL Linked tables. I have a utility routine that drops all links and re-establishes them. It works great when my connection string is a DSN connection...
16
4173
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
8
3222
by: Carlos Ojea Castro | last post by:
Hello: I'm trying to use kylix3 and postgresql 7.4.1. My distro was Debian Woody, kernel 2.20. I make the link /usr/local/pgsql/lib/libpq.so pointing to libpq.so.2.2 and connection with my...
17
3106
by: rdemyan via AccessMonster.com | last post by:
With A2003, I'm having trouble accessing files in a folder on another computer where back-end files, update files, etc are located. Here's the scenario: 1) Computer #1 - A2003 2) Computer #2 -...
8
2688
by: rdemyan via AccessMonster.com | last post by:
I've converted my application from A2K format to A2003 format. I tried to follow Allen Browne's protocol in getting my app into A2003 (although I was unable to find informtion on the conversion...
7
1616
by: Lyn | last post by:
Is there a solution to this problem? While stepping through code (F8) it would sometimes be helpful to observe changes occurring on the affected form in the Access window. However, the current...
0
7225
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
7124
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
7326
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,...
1
7046
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
7498
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
4707
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...
0
3195
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...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
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...

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.