Results 1 to 11 of 11
  1. #1
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352

    Displaying All Results of a Query on One Sheet of Form

    Hi,


    I would like to be able to display all the results of a query in one sheet of a form, much like how a report displays them. The reason I need a query is, however, there are some field the user has to input information into (this will end up being a purchasing order form for a company). Things like credit card, who is requesting the purchase, approved by, supplier name, etc. will have to be entered in manually, thus I cannot use a report. Anyways, I need a way to display all the results of a query on a single sheet of a form. Thanks!

    Nick

  2. #2
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    How do you want it set up?

    You could use just a continuous form:

    When you create your form, go to Property Sheet>Format>Default View: "Continuous Form"

  3. #3
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Yea that layout is what i want thanks! Now is there a way to get a total price to appear after the last record? Rather than being in the form footer...

  4. #4
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    You're welcome!

    And no, I'm pretty sure you will have to calculate total in the footer.

  5. #5
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    And one other arising issue, how can I allowed data entry into a form for certain textboxes, but restrict it for others? Specifically, the information the user has to manually input is in the header, and the query results are in the body of the form. Perhaps it is possible to allow data entry in only the header? Not sure how to go about this...

    Since when I allow data entry for the form my query results disappear, and when I don't allow data entry the query results are present.
    Last edited by nick404; 06-03-2015 at 08:39 AM. Reason: Additional Information

  6. #6
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Well I was able to get the query results to still show while allowing edits, but any way I can restrict edits to the query results? Also, can I get the form to not bring up a new row for data entry? The form will eventually be printed and I don't want an extra blank line there.

  7. #7
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Nick, as for the new row for data entry, you can disable this.

    Got to Property Sheet>Data>Allow Additions: No

    This will remove the blank record at the bottom.

    And I can't quite understand the first part of your question. Can you explain a little more? Maybe a screenshot or something?

  8. #8
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Click image for larger version. 

Name:	Capture.PNG 
Views:	9 
Size:	58.6 KB 
ID:	20910Here is an image of what I have going on. As written in the picture I want to somehow allow the user to type information in the top section (the header, blue) but restrict them from typing anything in the body part of the form (red). If I change the property 'Data Entry' to Yes, then it erases my query results. [The query results are the section of red]. This isn't a major issue, just something that would be helpful.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Data controls Locked property can be set to Yes to prevent editing.
    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.

  10. #10
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Are the query results constantly updating as you type returning new results?

    If this is the case, you may have to modify it to run the query once you are finished typing in the control.

  11. #11
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    Thanks for the help!

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

Similar Threads

  1. Replies: 2
    Last Post: 08-01-2013, 01:33 PM
  2. Replies: 1
    Last Post: 10-01-2012, 12:31 PM
  3. Displaying query results in form
    By celito in forum Access
    Replies: 2
    Last Post: 08-27-2011, 09:14 AM
  4. Replies: 9
    Last Post: 12-13-2010, 09:25 PM
  5. Displaying query results within a form
    By Remster in forum Forms
    Replies: 5
    Last Post: 10-05-2010, 09:56 PM

Tags for this Thread

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