Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Access claims relationships still exist... but I deleted all of th

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bigmike - 06 Jun 2006 15:54 GMT
I'm trying to resize field lengths in a bunch of my tables, because I wanted
to get the design down before I edited field sizes (we really weren't sure at
the time how long they needed to be)

well, now I have deleted all the relationships from the relationship window,
and even deleted all the tables from the relationships window.... i still
can't resize the fields because access claims that relationships still exist!
What's going on!!?!?

Thanks for the help!
-mike
Jerry Whittle - 06 Jun 2006 16:26 GMT
Go to the Relationship window and go to Relationships, Show All on the menu.
See if something more shows up.

Is the database split? Make sure that you are changing things in the back end.

Also make sure to use the vertical and horizontal scroll bars as some of the
tables might be a little off screen.
Signature

Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> I'm trying to resize field lengths in a bunch of my tables, because I wanted
> to get the design down before I edited field sizes (we really weren't sure at
[quoted text clipped - 7 lines]
> Thanks for the help!
> -mike
John Vinson - 06 Jun 2006 19:00 GMT
>I'm trying to resize field lengths in a bunch of my tables, because I wanted
>to get the design down before I edited field sizes (we really weren't sure at
[quoted text clipped - 4 lines]
>can't resize the fields because access claims that relationships still exist!
> What's going on!!?!?

Deleting the table icons does NOT delete the relationships - to do so
you need to select the *join line* and delete it.

There may be other relationships not showing up - the Lookup Wizard is
notorious for creating "hidden" relationships. You can use this small
tactical nuclear device to clean out all of the relationships in your
entire database (you'll need to recreate them later of course):

Sub KillAllRelations()
Dim db As DAO.Database
Dim rel As Relation
Dim inti As Integer
Set db = DBEngine(0)(0)
For inti = db.Relations.Count - 1 To 0 Step -1
   Set rel = db.Relations(inti)
   Debug.Print "Deleting relation "; _
     rel.Name, rel.Table, rel.ForeignTable
   db.Relations.Delete rel.Name
   Next inti
End Sub

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.