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

Relationship window

5
Hi,

In the relationship Window i need to add tables to the view using vba. i know how to do it manually but not using vba. Does anyone know how i can do this?

Thanks
Jan 26 '14 #1
11 1505
Rabbit
12,516 Expert Mod 8TB
Why would you need to do this? In a properly designed database, you shouldn't need to do this.
Jan 26 '14 #2
zmbd
5,501 Expert Mod 4TB
You do not add tables to the database\tools\relationship via VBA this is as with any of the GUI editors within Access.

Now, if you desire to modify the design of the database, that can be done via VBA; however, as Rabbit has stated, this should not need to be done, nor needed, at run time in a properly designed database.
Jan 27 '14 #3
wavo99
5
Yes I am trying to manipulate something which is why i need to do it this way.
Jan 27 '14 #4
Rabbit
12,516 Expert Mod 8TB
We understand that. What we want to know is what you're trying to manipulate and why. And the reason we want to know is because you shouldn't have to do this, you are most likely overcomplicating things and are going about it the wrong way.
Jan 27 '14 #5
wavo99
5
so i am trying to show a relationship view that has a specific amount of tables shown based on the user. So i am going to add and hide tables accordingly. If i can figure out how to set focus to a certain table in the relationship view i can hide the tables that i don't need to see. If i can figure out how to add a table to the view then that would be great too.
Jan 27 '14 #6
Rabbit
12,516 Expert Mod 8TB
And why do you need to do this?
Jan 27 '14 #7
wavo99
5
We are trying to create some reports for the user. We created something in access and we want to display the connections. We are using Access in a non conventional way.
Jan 27 '14 #8
Rabbit
12,516 Expert Mod 8TB
In what way are you using it?
Jan 27 '14 #9
wavo99
5
we want to display which tables connect are linked to which table. Even if the tables are not linked we want to show the tables.
Jan 27 '14 #10
Rabbit
12,516 Expert Mod 8TB
You said you are using Access in a non-standard manner, what is this non-standard manner you are referring to?
Jan 27 '14 #11
zmbd
5,501 Expert Mod 4TB
Then what it appears to be that you are actully talking about the report that is generated from the table relationships tool and not the actual tool.

The report can be manuplated to some degree, I've never attempted this myself; however, Allen Browne has done some of this so you should read thru this material and the accompaning code/project:Allen Browne: Relationship Report with extended field information

One thing of note " Stephen Lebans has a utility " mentioned in AB article has not been supported and may very well be broken for ACC2007 and beyond - USE IT AT YOUR OWN RISK.


BTW: Do see how using the proper syntax/grammer/jargon is an imparitive in dealing with programing/databases? If you had started out telling us that you were creating a report based upon the table relationships and needed some help with adding and deleting the tables shown....
Jan 27 '14 #12

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

Similar topics

8
by: Andante.in.Blue | last post by:
Hello, I have just inherited a legacy Access 97 database. While going through it, I noticed something strange... its Relationships window (the one accessed by Tools --> Relationships) is almost...
2
by: Don | last post by:
This is dumb... but. When I view the relationships, one of the tables is positioned so high on the screen that the title bar is not visible. I would like to reposition it so I can work with but I...
2
by: Larry R Harrison Jr | last post by:
I have an Access 97 database with 2 tables that have a one-many relationship. I have a SQL statement in the "one" table which I want to execute and insert 7 records into the "many" table, and I...
5
by: BrianDP | last post by:
This is a strange one-- I have an Access 2K database with a split front end/back end. There are two tables in the back end - RFile and RLine. There is a one to many relationship from...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
11
by: Nick 'The Database Guy' | last post by:
How do I acheive this, any one know. Thanks in advance. Nick
4
by: MikeSA | last post by:
Hi All I have a Orders query and a Order Details query both derived from their respective tables, of which the Order Details query then eventually becomes a sub-form of the Form Orders. Standard...
2
by: paii, Ron | last post by:
Is it possible and if so how can I change the background color of the relationship window. I want to make it white.
2
by: paulcjcross | last post by:
How to set up a many to many relationship. I know you need a third table to join the other two. I need one table (table1) with stock_numbers(unique), one table (table2) with job-numbers(unique) and...
4
by: Phil Stanton | last post by:
Having spent ages sorting out the layout of my relationship window with about 60 tables and getting it all tidy and with enough of the tables visible to show the PK an FK relaionshipsOn a subseqent...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.