Results 1 to 7 of 7
  1. #1
    nickmaxwell is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    3

    Help with query in this database

    Hi



    I am trying to create a query in the attached database that will allow me to find all open cases for a contractor ("Assigned to in the issues") and another query which will allow me to find all closed cases for a contractor. And then print this form off.

    But for the life of me I cannot get the query to work. Querying on the status is fine but the query on the contractor, just will not work. I am assumming it is because in the Issues table the contractor is a lookup from the contactors table....

    If you could help out it would very much help my melted head.

    Nick

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Suggest you convert your db to an version that is 2003 or earlier so more people can access it. AC 2010 is not viewable by users of earlier versions.

    Alan

  3. #3
    nickmaxwell is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    3
    Unfortunately I cant - I must be using features specific to 2010 as it doesnt give me the option to save as any other version.

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    In that case, suggest you post your SQL statements for your queries. Indicate what you expect for results and what you are getting for results.

  5. #5
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    You need to go back and redesign your DB. I recommend using a naming convention such as all table names start with tbl, query names start with qry, forms frm.... You have tables and forms with the same names queries and reports. You have a table for contractors but then store the name in the issues table rather than a foreign key to the contractors table. Do some reading on Normalization, Primary and Foreign Keys.

  6. #6
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Based upon Ray's comment as I haven't seen your db, look here.

    http://www.deeptraining.com/litwin/d...aseDesign.aspx

  7. #7
    nickmaxwell is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    3
    Thanks for the help guys. Reading up now.

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

Similar Threads

  1. Training Database Query Help
    By cjb1317 in forum Queries
    Replies: 6
    Last Post: 10-05-2011, 09:43 AM
  2. Save a Query as a database ?
    By mrkaye in forum Access
    Replies: 1
    Last Post: 05-03-2011, 03:02 PM
  3. Database Query - Need help
    By krymer in forum Queries
    Replies: 1
    Last Post: 09-01-2010, 08:22 PM
  4. Open Query from another database
    By thestappa in forum Programming
    Replies: 2
    Last Post: 07-23-2010, 08:45 AM
  5. Running a query from another database
    By manicamaniac in forum Access
    Replies: 1
    Last Post: 06-11-2010, 04:54 PM

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