Problem in designing forms for database in MS Access 2007

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • snutan1
    New Member
    • Apr 2008
    • 3

    Problem in designing forms for database in MS Access 2007

    Hi all,
    I am designing a database named grants in MS Access. It basically deals with
    1) A group of people write a proposal for projects that they want to do.
    2) The proposal is submitted to a funding agency for consideration.
    3) At some time in the future, the funding agency may or may not accept the proposal and make an award to fund the project.
    For this I have created 5 tables
    1) Proposals: ProposalID(Prim ary Key), ProfessorID, Project Number, Title, ProposalBeginDa te, ProposalEndDate , ProposalAmount, SubmitDate, Notes.
    2) Professors: ProfessorID(Pri maryKey), Role, FirstName, Lastname, College.
    3) Agencies: AgencyID(Primar ykey), Agency, Program, Agencyfundingty pe.
    4) Awards: AwardID(Primary key), ProposalID, Increment, BeginDate, EndDate, Amount, AwardDate, AccountNumber.
    5) Departments: DepartmentID(Pr imarykey), Departmentcode, Department.

    --Proposals and agencies have many to many relationship so I created a temp table Proposals_Agenc ies with fields- ProposalID, AgencyID.
    --Professors and Departments also have many to many relationship, so I created temp table Professors_Depa rtments with fields- ProfessorID, DepartmentID.

    Professors and Proposals have one to many relationship.
    Proposals and Awards have one to many relationship.

    Now the problem im not able to figure out how to create the forms and corresponding subforms to the above database so that data is correctly entered into the tables. I need your help in this regard. I have tried so many examples but im getting errors in entering the data. If you have any template similar to this one it will be really useful to me.

    I would be grateful for any assistance with this database.

    Thanks
    Shilpa
  • pdebaets
    New Member
    • Mar 2008
    • 16

    #2
    What are the errors you get when you enter data in the tables?

    Comment

    • nico5038
      Recognized Expert Specialist
      • Nov 2006
      • 3080

      #3
      My general approach is to use a datasheet subform with buttons to [Add], [Update], [Delete], [Print], etc. to manipulate the table occurrences. (It's called the Object/Action principle, just check my sample: http://www.geocities.com/nico5038/xS...tAction-97.zip)

      When there is a relation between tables the "lower" table will be added as a subform on the mainform of the "master" table.
      For the many to many relation table I use the same mainform/subform approach and depending on the situation I use one or when needed two forms, one for each "main" table.

      Nic;o)

      Comment

      • snutan1
        New Member
        • Apr 2008
        • 3

        #4
        Actually I have to create a main form for professors which has subforms of proposals and departments.( departments subform should be in such a way that I can select multiple departments). Also the proposals subform should contain 2 subforms awards and agencies. (agencies subform should be in such a way that I can select multiple agencies).
        I am able to create only one subform in the main form using form wizard. But I am able to understand how to put a subform in a form which is a subform for another form.

        If you know have any template for this type of design it would be really helpful.

        Thanks
        Shilpa

        Comment

        • nico5038
          Recognized Expert Specialist
          • Nov 2006
          • 3080

          #5
          Access supports sub, but also sub-sub forms.
          Having Access 2000 and higher will allow to add a [+] relation to the table to goto the "lower" level, but in general I would split such a grandparent/parent/child combination and have a button on the first Main/Sub form to open the Sub/SubSub form for the same Professor.

          Getting the idea?

          Nic;o)

          Comment

          Working...