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

Linked tables troubleshooting

Hi,

I have a database with a number of linked tables. I want to remove two
of them and can't. I can remove other linked tables in the database.

Does anybody have any suggestions as to what I can do to get rid of
the unwanted linked tables and make sure that the problem does not
recur?

Thanks in advance for any help.

Regards

Emmett Power
Nov 12 '05 #1
5 1396
What do you want to 'get rid of', the links or the tables themselves?

What happens when you try to delete them? Any messages?

"Emmett Power" <Em****@Silico-Research.com> wrote in message
news:6e**************************@posting.google.c om...
Hi,

I have a database with a number of linked tables. I want to remove two
of them and can't. I can remove other linked tables in the database.

Does anybody have any suggestions as to what I can do to get rid of
the unwanted linked tables and make sure that the problem does not
recur?

Thanks in advance for any help.

Regards

Emmett Power

Nov 12 '05 #2
Hi Mike,

Thanks for the help. I want to remove the linked table and the link in
the master database. I want to keep the original tables in the other
database intact.

Nothing happens when I attempt to delete the table or open it: no error
message - nada. I have tried refrshing - still nothing.

The linked table seems to work fine in queries so I guess it's not
corrupt.

Thanks again.

Emmett


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
RE/

Thanks for the help. I want to remove the linked table and the link in
the master database. I want to keep the original tables in the other
database intact.

Nothing happens when I attempt to delete the table or open it: no error
message - nada. I have tried refrshing - still nothing.

The linked table seems to work fine in queries so I guess it's not
corrupt.


This is just off-the-cuff, but have you tried deleting it via DAO code instead
of the UI? Last week, I found out that I could set .SubDataSheetName for a
link via code, but that the UI would now allow it.
--
PeteCresswell
Nov 12 '05 #4
Pete,

Thanks for the suggestion: I'll try it. Do you have a sample of the code
that worked for you?

Regards

Emmett Power

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #5
RE/
Do you have a sample of the code
that worked for you?


But remember - tjat was for .SubDataSheetName, not for the link....and
it hits *all* of the tables.

What you really want is to point to the TableDef in question and
then issue a Delete.

I did this in an Immediate window, and the link in question
did, indeed, go away:
--------------------------------------------------------------------
CurrentDB.TableDefs.delete("zstblAttachmentInfo")
--------------------------------------------------------------------
Your milage may vary....

For whatever reason... here's some.SubDataSheetName code
------------------------------------------------------------------
Public Sub SubDataSheetZap()

Dim thisDB As DAO.Database
Dim curTD As DAO.TableDef
Dim newProp As DAO.Property
Dim i As Long

Const myNone = "[None]"
Const newPropName = "SubDataSheetname"

Set thisDB = CurrentDb()

SysCmd acSysCmdInitMeter, "Zapping SubDataSheet Names...",
thisDB.TableDefs.Count
For i = 0 To thisDB.TableDefs.Count - 1
Set curTD = thisDB.TableDefs(i)
If tablePropExist(newPropName, curTD) Then
curTD.Properties(newPropName) = myNone
Else
Set newProp = curTD.CreateProperty(newPropName, dbText, myNone)
curTD.Properties.Append newProp
Set newProp = Nothing
End If
SysCmd acSysCmdUpdateMeter, i
Next i

SysCmd acSysCmdRemoveMeter
Set curTD = Nothing
Set newProp = Nothing
End Sub

Private Function tablePropExist(ByVal thePropName As String, ByRef theTD As
DAO.TableDef) As Boolean

Dim myProp As DAO.Property

On Error Resume Next
Set myProp = theTD.Properties(thePropName)
On Error GoTo 0

If Not myProp Is Nothing Then
tablePropExist = True
End If
End Function
------------------------------------------------------------------
--
PeteCresswell
Nov 12 '05 #6

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

Similar topics

1
by: Marcus | last post by:
I have a database containing my own tables and data and I wanted to be able to query this against an accountancy program which has an ODBC driver. This was never a problem with MS Access and Jet...
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
4
by: Hank | last post by:
I have two SQL Server 2000 machines (server_A and server_B). I've used sp_addlinkedserver to link them both, the link seems to behave fine. I can execute remote queries and do all types of neat...
2
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing...
5
by: Emmett Power | last post by:
Hi, I have a database with a number of linked tables. I want to remove two of them and can't. I can remove other linked tables in the database. Does anybody have any suggestions as to what I...
4
by: Neil Ginsberg | last post by:
I have ODBC linked tables to a SQL 7 database in an A2K database. The linked tables do not have the password stored in them, so the first time the user accesses them, they need to enter the SQL...
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...
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,...
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...
2
by: jpatchak | last post by:
Hello All, Is there a way to refresh a linked table programatically through VBA (as part of an error handler). I have an Access database with several tables linked through ODBC. User forms are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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.