By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,466 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,466 IT Pros & Developers. It's quick & easy.

How to Display forms, or Combine forms

P: 14
Hi, I'm somewhat new to MS Access and I'm having trouble with displaying two forms. Firstly my program is going to use a search button to search through several different Tables. The Search Form has a search field and once the 'Search' Button is pressed it is supposed to open multiple forms showing the correct results. I'm able to do this correctly now, but I'm having a problem displaying them. When the search button is pressed I do a simple DoCmd.OpenForm. I open multiple forms using this command, but they all just pop up. This means the last form that is opened covers the rest of the forms, and it is somewhat 'ugly' to look at. If a user is to look at this they'd have to look through all these windows. I was wondering if it was possible to display all these forms at a certain position on a screen and with a certain size dimension. This is one of my options. My other option is to somehow combine all the forms into one form. Since all these forms contain completely different data it was decided to do them seperately in the first place.
Jan 8 '07 #1
Share this Question
Share on Google+
13 Replies


P: 14
I'm still looking into it, and I was thinking if I could somehow link a forum to a table I specified I should be able to do this. Is there a way I can make a form which displays more than one table.
Jan 8 '07 #2

P: 14
I'm using MS Access 2000 by the way.
Jan 8 '07 #3

P: 14
Ok, well I've finally found out how to display two forms in one: SubForms. Not really that hard I guess. But I still have one problem. When I used to do the DoCmd.OpenForm command in the Where condition I'd put some kind of condition to filter the results. But now there are two subforms in my form.. How do I filter the results in each of the subforms respectively? Basically, how do I call a subform within a form.

Any help is appreciated.

Thank You.
Jan 8 '07 #4

NeoPa
Expert Mod 15k+
P: 31,186
I'm still looking into it, and I was thinking if I could somehow link a forum to a table I specified I should be able to do this. Is there a way I can make a form which displays more than one table.
Rather than subforms, I would populate the form with a multi-table query.
Putting all the fields in one query gives all the data required which can then be put in the relevant parts of the form - grouped by original table if you like.
Jan 9 '07 #5

P: 14
Hmm. I see. Well I tried doing this and what I want to do is display all the values from one of the tables first and then the values from the other table second.The problem is that there is only form header and footer which effects my table. As You can see I'm very new to access and I'm having a lot of trouble displaying two tables in one form one after the other in Tabular mode.
Jan 9 '07 #6

P: 14
Hmm. I see. Well I tried doing this and what I want to do is display all the values from one of the tables first and then the values from the other table second.The problem is that there is only form header and footer which effects my table. As You can see I'm very new to access and I'm having a lot of trouble displaying two tables in one form one after the other in Tabular mode.
Is it possible to make more than one Form Header, Detail, and Form Footer?
Jan 9 '07 #7

NeoPa
Expert Mod 15k+
P: 31,186
What have you managed to do?
Where do you get stuck or what errors do you get?
Jan 9 '07 #8

P: 14
Is it possible to make more than one Form Header, Detail, and Form Footer?

Wow I really don't like MS Access. But I continue to try and Since I really don't understand how to work with Queries I've continued to work with tables. I made two forms that are bound to the two tables and one form that contains the two forms as subforms. Now all I need to do is simply Apply a Filter to each of these Subforms. But for some reason MS Access is too stupid to realize I'm applying the filter to the subform and not to the main form. Therefore it is giving me an error saying this Form is not bound to a table and therefore I can't use ApplyFilter. So I tried the SelectObject, which also didn't work because it said the form was not open. But it is OPEN!!! It's open as a subform. Not many people use this forum do they? I feel like I'm talking to myself.
Jan 9 '07 #9

NeoPa
Expert Mod 15k+
P: 31,186
...Not many people use this forum do they? I feel like I'm talking to myself.
I can't stop you trying to criticize the forums where you are expecting to get help, but it doesn't seem a great policy in the circumstances. Particularly when you consider the time gap between posts - Your post #7 01:51 GMT - My post #8 01:56 GMT (5 mins) - Your post #8 02:38 (42 mins). These are forums where members of the public volunteer their time and I don't want to see their contributions (or perceived lack of them) criticised by you or anyone here.

MODERATOR.
Jan 10 '07 #10

NeoPa
Expert Mod 15k+
P: 31,186
Wow I really don't like MS Access. But I continue to try and Since I really don't understand how to work with Queries I've continued to work with tables. I made two forms that are bound to the two tables and one form that contains the two forms as subforms. Now all I need to do is simply Apply a Filter to each of these Subforms. But for some reason MS Access is too stupid to realize I'm applying the filter to the subform and not to the main form. Therefore it is giving me an error saying this Form is not bound to a table and therefore I can't use ApplyFilter. So I tried the SelectObject, which also didn't work because it said the form was not open. But it is OPEN!!! ...
As far as your problem goes, you seem to be expecting Access to conform to your rules rather than trying to work with the facilities that Access provides. Furthermore, you choose to follow your own route rather than advice given here. I cannot help you if you try to go the route you've chosen - for me that is far more complicated and I can't be much help. Also, why waste my time if you're going to ignore it anyway.
Good luck.
Jan 10 '07 #11

P: 36
I agreed to Mr. Moderator

EXCUSE ME HERE................

Access is a very good and developer friendly database and application tool.

If you don't know how to use or work with Qeuries, well I believe Access is not the one who's stupid.

=)





Wow I really don't like MS Access. But I continue to try and Since I really don't understand how to work with Queries I've continued to work with tables. I made two forms that are bound to the two tables and one form that contains the two forms as subforms. Now all I need to do is simply Apply a Filter to each of these Subforms. But for some reason MS Access is too stupid to realize I'm applying the filter to the subform and not to the main form. Therefore it is giving me an error saying this Form is not bound to a table and therefore I can't use ApplyFilter. So I tried the SelectObject, which also didn't work because it said the form was not open. But it is OPEN!!! It's open as a subform. Not many people use this forum do they? I feel like I'm talking to myself.
Jan 10 '07 #12

NeoPa
Expert Mod 15k+
P: 31,186
George,
While I appreciate your support, and understand your point exactly, I would like to keep these forums as friendly as possible and avoid any sort of flaming issues.

Regards -Adrian (MODERATOR).
Jan 10 '07 #13

P: 36
Copy that...

Regards,
George


George,
While I appreciate your support, and understand your point exactly, I would like to keep these forums as friendly as possible and avoid any sort of flaming issues.

Regards -Adrian (MODERATOR).
Jan 10 '07 #14

Post your reply

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