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 3 1645
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
Hi Roger, thank you very much. I will do that
"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; This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |