473,399 Members | 2,858 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,399 software developers and data experts.

Deleting linked tables

1
I have followed all suggestions as to removing linked files from an Access database but when I select the table and attempt to delete it using any of the normal deleting methods I gt a MS message window saying that " " is not a valid name. Make sure it does not include invalid characters or punctuation and that it is not too long." (The second quotation mark at the beginning of the message is part of the message.) The table name is valid, only Arabic characters, no punctuation. Every linked table presents the same message when I try to delete it. Any ideas?
Sep 10 '13 #1
2 3140
zmbd
5,501 Expert Mod 4TB
Open a standard module in VBA-Editor.
Copy and paste the following code:
Expand|Select|Wrap|Line Numbers
  1. Sub listlinkedtables()
  2. '
  3.     Dim zdb As DAO.Database
  4.     Dim ztdf As DAO.TableDef
  5.     Dim zloop As Long
  6.     Dim zlinkcnt As Long
  7.     Dim zerrcnt As Long
  8.     '
  9.     Set zdb = CurrentDb
  10.     '
  11.     On Error GoTo ZJ_Errtrap
  12.     '
  13.     ' ***Start of Code ***
  14.     '>>>
  15.     Debug.Print String(20, "=")
  16.     '
  17.     For Each ztdf In zdb.TableDefs
  18.         zloop = zloop + 1
  19.         If ztdf.Attributes = dbAttachedTable Then
  20.             zlinkcnt = zlinkcnt + 1
  21.             Debug.Print "Linked table>> " & ztdf.SourceTableName
  22.             If Err.Number > 0 Then Err.Clear
  23.         End If
  24.     Next
  25.     '
  26.     Debug.Print "Inspected: " & zloop; " tables and found " & zlinkcnt & " linked and with: " & zerrcnt & " errors"
  27.     Debug.Print String(20, "=")
  28.     '
  29.     Set zdb = Nothing
  30.  
  31.     If Not zdb Is Nothing Then Set zdb = Nothing
  32.     MsgBox "press <CTRL><G> to open the immediate window for information reveiw"
  33.         ' *** End of Code ***
  34. '>>>
  35. '
  36.  
  37. Exit Sub
  38. '
  39. 'Connection error
  40. ZJ_Errtrap:
  41.     DoCmd.Hourglass False
  42.     Debug.Print "ErrorOccured>" & Err.Number & "--" & Err.Description
  43.     zerrcnt = zerrcnt + 1
  44.     Resume Next
  45. End Sub
  46.  
Results should be self explanitory.
IF and ONLY IF there are errors in the listing, then copy and paste the entire listing in the immediate window to the thread.

Busy day in the lab... on my way home to relax... OK, really, to help the DD with her math.
Sep 10 '13 #2
jimatqsi
1,271 Expert 1GB
Have you done a compact and repair?

Can you rename these table links? (just curious)
Can you get a clean compile? (again just curious,but it's not idle curiosity)
What do you see for the link information if you hover over the link? It might be informative.

You could create a new, blank database and import all the local tables, queries, forms, macros and modules. That's a workaround, it should solve the problem, but won't demonstrate what the real problem is.

Jim
Sep 10 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: pinballjim | last post by:
Hello everyone, I'm looking for a simple way to create a local copy of a linked table. I've got a database that links about 10 tables from other databases. This works fine on my machine, but I...
2
by: Internet Arrow Limited | last post by:
Hi, I have a requirement to write an access application that must run under access97 and access2K. Some users will use Acess2K to access data that will also be accessed by Access97 users. The...
5
by: b b | last post by:
I created the following code to delete all linked tables in my database (Access 200): -------------------------------------------------------- Dim tbl As TableDef Dim dbs As Database Set dbs...
7
by: Joe | last post by:
I am using Access 2003 and are linking to an Oracle 9i ODBC datasource (using Oracle ODBC drivers). After linking the tables in Access, I inspect the data contained in the linked tables. For...
6
by: RBohannon | last post by:
I'm using Access 2000. I have a DB with 19 tables, and I have just split it. When I look in the back end, all 19 tables are there. However, only 17 of them in the front end are actually linked to...
1
by: Karen Hill | last post by:
I have a database which is split. The logic is in an MDE file, which connects to a MDB file via linked tables. Now, since the MDE file is installed, on one computer and the linked tables reside...
7
by: smd | last post by:
Hello and thanks for taking the time to read this. I've looked all over the web and newsgroups and can't find a solution to my problem. I've posted this question to the Access 2000 group as well -...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
2
by: S. van Beek | last post by:
Dear reader, By working with a frond-end and back-end databases with the use of linked tables the performance, if both mdb's are on a local drive is reasonable. But in case the backend is...
25
by: bubbles | last post by:
Using Access 2003 front-end, with SQL Server 2005 backend. I need to make the front-end application automatically refresh the linked SQL Server tables. New tables will be added dynamically in...
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
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
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
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
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,...
0
isladogs
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...

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.