Results 1 to 7 of 7
  1. #1
    jaarons is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    22

    Complex Queries to run off a button

    Ok here's something I want to do.



    I am a teacher, and in my class database I have a table called anecdotals (for my anecdotal notes). I have a form that I can enter date, subject, student (from a pull down) and notes. It then gets entered into my Anecdotal table.

    What I want is to create queries that I can link to a menu button that will allow the user to:
    1) Create a report of all anecdotal notes about a particular student, according to subject (ie: Filter all results in Anecdotal table to only those about Billy and pertaining to Math)
    2) Create a report of all anecdotal notes about a particular student, according to terms (ie: Filter all results in Anecdotal table to only those about Billy and pertaining to Term whatever and then grouping by subject)

    The second option needs me to define for access the exact dates for terms 1, 2, 3 & 4.

    Any ideas? Please help!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jaarons is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    22
    Ok, no it's not helping. It's making my head hurt. Aside from what I said in my previous post, this is what I have done.
    1) Created a table called Terms2013 where I have Term Name, Date1, Date2 (where the term is inside those dates). I have a record for each of the four terms.
    2) I have a basic form set up with a combo box that links to the term name field of that table. I then created a button to run the query, thereby run a report, but that's where I got stuck. Of course I haven't set up the query yet and the whole thing is just hurting my head.

    What can I do?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Do you have a table that relates student with a term?

    Really can't help without knowing your data structure. Need to get your data structure correct before even think about building forms and reports. Review 'sticky' thread tutorials at http://forums.aspfree.com/microsoft-access-help-18/

    Have you looked at Microsoft template databases? A selection is available when you open Access, even a couple for student records.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You don't need to open a query before opening a report.

    Rather than write out step-by-step, look a the attached mdb. Is this close to what you want?

  6. #6
    jaarons is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    22
    Thank you so much, ssanfu! That worked an absolute treat! I had to tinker with it for a while to make it fit with my database, but thank you VERY much for taking the time!

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Glad you got it to work

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

Similar Threads

  1. Replies: 7
    Last Post: 02-23-2012, 07:24 PM
  2. System Requirements for Complex Large Queries
    By nguyeda in forum Import/Export Data
    Replies: 23
    Last Post: 08-04-2011, 01:30 PM
  3. Help with complex query (for me at least)
    By GrindEspresso in forum Queries
    Replies: 5
    Last Post: 01-26-2011, 11:03 AM
  4. need help, expression is too complex?
    By ice673 in forum Queries
    Replies: 5
    Last Post: 02-15-2010, 09:03 PM
  5. Complex Query/Queries for a Report
    By Rawb in forum Queries
    Replies: 3
    Last Post: 02-04-2010, 07:44 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