How to Display forms, or Combine forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deville75
    New Member
    • Jan 2007
    • 14

    How to Display forms, or Combine forms

    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.
  • deville75
    New Member
    • Jan 2007
    • 14

    #2
    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.

    Comment

    • deville75
      New Member
      • Jan 2007
      • 14

      #3
      I'm using MS Access 2000 by the way.

      Comment

      • deville75
        New Member
        • Jan 2007
        • 14

        #4
        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.

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32662

          #5
          Originally posted by deville75
          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.

          Comment

          • deville75
            New Member
            • Jan 2007
            • 14

            #6
            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.

            Comment

            • deville75
              New Member
              • Jan 2007
              • 14

              #7
              Originally posted by deville75
              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?

              Comment

              • NeoPa
                Recognized Expert Moderator MVP
                • Oct 2006
                • 32662

                #8
                What have you managed to do?
                Where do you get stuck or what errors do you get?

                Comment

                • deville75
                  New Member
                  • Jan 2007
                  • 14

                  #9
                  Originally posted by deville75
                  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.

                  Comment

                  • NeoPa
                    Recognized Expert Moderator MVP
                    • Oct 2006
                    • 32662

                    #10
                    Originally posted by deville75
                    ...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.

                    Comment

                    • NeoPa
                      Recognized Expert Moderator MVP
                      • Oct 2006
                      • 32662

                      #11
                      Originally posted by deville75
                      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.

                      Comment

                      • George Oro
                        New Member
                        • Jan 2007
                        • 36

                        #12
                        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.

                        =)





                        Originally posted by deville75
                        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.

                        Comment

                        • NeoPa
                          Recognized Expert Moderator MVP
                          • Oct 2006
                          • 32662

                          #13
                          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).

                          Comment

                          • George Oro
                            New Member
                            • Jan 2007
                            • 36

                            #14
                            Copy that...

                            Regards,
                            George


                            Originally posted by NeoPa
                            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).

                            Comment

                            Working...