Results 1 to 7 of 7
  1. #1
    ds_8805 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    27

    Problem with form display

    Hi Everyone, I am trying to create a form based on 4 tables.
    The tables are :



    SiteInfo Table
    Contracter Table
    Project Table
    Purchase Table.

    The relationships for these tables are as follows:
    SiteInfo table is related to Contracter Table by the contracter id and it is also related to the Project table by the project id. The purchase table is related to the product table table by the project id.

    Initially, I had only the first 3 tables (siteinfo, contracter, project ) and any forms I created using all these 3 tables together, there was not any problem. However, with the addition of the new purchase table, nothing appears in the form in the form view. Could any of u tell me what I might be doing wrong and how I could possibly go about solving it?

    Any help would be greatly appreciated! Thanks

  2. #2
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows XP Access 2007
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    Is your form is based on subforms each for different table OR it is based on a combined query of all the three tables?

  3. #3
    ds_8805 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    27
    the form is based on a combined query for all the 4 tables. thanks!

  4. #4
    Gerry is offline Rusty Developer
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    Kings Mountain, NC
    Posts
    33
    Please post the SQL for the underlying query.

  5. #5
    ds_8805 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    27
    Hey I just realised that the form is able to display when I change the relationship for the purchase table. Now instead of linking it to project table, I have linked it to siteInfo table.

    However I am still facing some problem. The problem now is that I need to create a report where the user should be allowed to select 5 sites and it should be displayed in the report. The thing now is that this 5 sites are randomly selected. I dun really have a clue on how to do this. I hope u can understand wat I m trying to ask.

    if u wan i can attach my db also but i dun really noe how to attach it here.

    thanks

  6. #6
    Gerry is offline Rusty Developer
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    Kings Mountain, NC
    Posts
    33
    What you want is simply a query with 5 "OR" criteria. That's simple enough. You just need 5 fields in a form, which feed the query its criteria. Start by creating the query that will do this (using static criteria). For instance, if the field is JobSite, you might have these 5 criteria in that column:
    "Ashwood St."
    "Parking Deck"
    "Stimpson Building"
    "Croft St."
    "Taj Mahal"

    Once you have the query working, you need to create a form that executes the query to feed a report. On that form, you'd have 5 selection boxes for the user to choose the sites. Then, your query criteria would change to:

    frmSelection!lstSite1
    frmSelection!lstSite2
    frmSelection!lstSite3
    frmSelection!lstSite4
    frmSelection!lstSite5

    There are other ways, too.

  7. #7
    ds_8805 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    27
    oohhhhhhhhhhh what a great idea. This did not strike me before. Thank u so much! will def go try this. Thank u!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Subform won't display in main form
    By Lynn in forum Forms
    Replies: 15
    Last Post: 03-22-2010, 10:17 AM
  2. Display table on a form
    By vCallNSPF in forum Forms
    Replies: 1
    Last Post: 01-17-2010, 08:23 PM
  3. Replies: 8
    Last Post: 10-09-2009, 10:12 AM
  4. display query results in a form
    By P5C768 in forum Queries
    Replies: 3
    Last Post: 08-14-2009, 03:02 PM
  5. Form to display results
    By Zholt in forum Forms
    Replies: 9
    Last Post: 05-07-2009, 10:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums