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

Table relationships

Hi All,

I am working on a database which has over 30 tables and they have
relationships between them. Sometimes I notice that in the forms I get the
information which I don't need. For example, I get CityID instead of
CityName. I can easily find out what table contains CityID displayed in my
form, but I don't know how to find if there is a table which has CityID and
CityName. If I can find, I then can show the CityName in the form, instead
of CityID.
I don't know if such a table to contain CityName even exist. Maybe there is
a way to show all the tables which have CityID as a field in them? If I can
see them, at least I can go only through those ones, instead of all the
tables.
I think it can be done with some VBA code, using the TableDefs. But maybe
there are better ways of doing it

Any help appreciated.

Regards,
Nicolae


Nov 13 '05 #1
3 1647
in access97, goto tools -> analyze -> documenter
select the 'tables' tab
click 'select all'
click the 'options' button and select relationships & 'name, data types and
size'
save the resulting report as a word document and search at will
"Nicolae Fieraru" <no****@please.cxm> wrote in message news:<40********@duster.adelaide.on.net>...
Hi All,

I am working on a database which has over 30 tables and they have
relationships between them. Sometimes I notice that in the forms I get the
information which I don't need. For example, I get CityID instead of
CityName. I can easily find out what table contains CityID displayed in my
form, but I don't know how to find if there is a table which has CityID and
CityName. If I can find, I then can show the CityName in the form, instead
of CityID.
I don't know if such a table to contain CityName even exist. Maybe there is
a way to show all the tables which have CityID as a field in them? If I can
see them, at least I can go only through those ones, instead of all the
tables.
I think it can be done with some VBA code, using the TableDefs. But maybe
there are better ways of doing it

Any help appreciated.

Regards,
Nicolae

Nov 13 '05 #2
Hi Roger, thank you very much. I will do that
Nov 13 '05 #3
rkc

"Nicolae Fieraru" <no****@please.cxm> wrote in message
news:40********@duster.adelaide.on.net...
Hi All,

I am working on a database which has over 30 tables and they have
relationships between them. Sometimes I notice that in the forms I get the
information which I don't need. For example, I get CityID instead of
CityName. I can easily find out what table contains CityID displayed in my
form, but I don't know how to find if there is a table which has CityID and CityName. If I can find, I then can show the CityName in the form, instead
of CityID.
I don't know if such a table to contain CityName even exist. Maybe there is a way to show all the tables which have CityID as a field in them? If I can see them, at least I can go only through those ones, instead of all the
tables.
I think it can be done with some VBA code, using the TableDefs. But maybe
there are better ways of doing it


Paste the following into the SQL view of the Query Builder:

SELECT MSysRelationships.szObject &" ("
& MSysRelationships.szColumn & ") <---> "
& MSysRelationships.szReferencedObject
& "("& MSysRelationships.szReferencedColumn&")" as relationships
FROM MSysRelationships
ORDER BY MSysRelationships.szObject;


Nov 13 '05 #4

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

Similar topics

1
by: cvchen | last post by:
Hello, I'm implementing a data dictionary (catalogging system) that can be searched in several ways. I finished the first version without using any databases, I just had pickled dictionaries to...
7
by: Jeff | last post by:
When you connect to an Oracle database with Access and ADO, is there a way to get information on the Oracle table relationships? Jeff
1
by: abefuzzleduser2 | last post by:
What is the best way to setup relationships between one lookup table and many other tables. The tables did not have any lookup table relationships which I am adding. One lookup table is used for...
20
by: Ed | last post by:
I am running Access 2002 and just ran the built in Access wizard for splitting a database into a back end (with tables) and front end (with queries, forms, modules, etc.). After running the...
3
by: GGerard | last post by:
Hello Does anyone know if it is possible with Access 2000 to create relationships between tables using code? Thanks G.Gerard
1
by: Gandalf | last post by:
I'm creating relationships between tables using VBA and ADOX. I can create one-to-one relationships with an inner join, but I can't figure out how to create these relationships with an outer join...
6
by: GaryDave | last post by:
My school registration database has not been quite right after a recent compact and repair (done while I was away). Though most of the many forms and subforms are working normally, one form in...
3
ebs57
by: ebs57 | last post by:
I am looking for some basic help in understanding and setting up table relationships in Access. I've created one table called PROJECTS and it has the field JobNo which I've declared as the key...
1
by: ChristianC | last post by:
I'm getting started developing a new database and I've established my tables and I made a few relationships. Now I'm trying to make some changes which involve deleting a few columns in one table that...
3
by: anjee | last post by:
Hello, Is it possible to create multiple foreign keys on a field in a table from values in two separate tables where the field value can be from one table OR the other? For example, I have an...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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
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.