Results 1 to 11 of 11
  1. #1
    murphy63 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    10

    query results into split form?

    I have a search form tied to a query.. this works fine.. I just need the query results to appear in another form I created. Can that be done? If so what property(s) do I need to update and with what.

    thank you

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Is there anything keeping you from copying the query to the other form? More details of your design are needed...

  3. #3
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Is the second form a subform? If so, you can link the two forms.

  4. #4
    murphy63 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    10
    no, can I make it a sub form?

  5. #5
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Add it to the main form as a subform (on the Design menu), then use the linking properties to link it to the main form.

  6. #6
    murphy63 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    10
    the "Subform in New window" option is grayed out on both the main from and the one I want the results to show in

  7. #7
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Not sure what you mean by that. Go into design view of the main form, from the Design/Controls menu on the ribbon select the subform icon and click on the main form where you want it to go.

  8. #8
    murphy63 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    10
    I have an unbound search form, this form is used to provide the query with the information to query on:

    this is the query:
    SELECT tblDataSources.*
    FROM tblDataSources
    WHERE (((tblDataSources.Function)=Forms!SearchForm!searc hFunction)) Or (((tblDataSources.Alias)=Forms!SearchForm!searchAl ias)) Or (((tblDataSources.[Copybook-SAS Dataset Name-Table Name])=Forms!SearchForm!searchCopybook)) Or (((tblDataSources.[Copybook-SAS Dataset Name-Table Name])=Forms!SearchForm!searchSASDS)) Or (((tblDataSources.[Copybook-SAS Dataset Name-Table Name])=Forms!SearchForm!searchTable));

    This works fine and produces the correct results in a datasheet. But I want the results to show in a second form which I have created that is a split form.

    So what I want is the query results to shows in the top part of the split form as datasheet. The bottom of the split form is a update form. So you would select one of the records in the upper part of the split form and the information would show in the bottom form and there it could be updated.

    thanks in advance.

  9. #9
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    It seems to me that you are selecting the record twice, once on each form. If you can, get them to select the record to be updated in only one place.

    The main form is where they will select the correct record. Then, by using the Link properties, the correct record will show up on the subform where it can be updated. You will link the forms using the field or fields that will identify the record(s) to be updated.

  10. #10
    murphy63 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    10
    the first form is the search form that provides the value for the query to search on.

    I was able to tie a form to the query and that works fine.

    The problem is when I open the query form just a box pops up to input the for the search variables. The query searches 3 fields so the box comes up once for each field. I just wanted the search form to execute the query with the query results in the split form.

  11. #11
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Can you attach your database, or just the forms in question?

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

Similar Threads

  1. Replies: 3
    Last Post: 11-03-2015, 11:19 PM
  2. Replies: 1
    Last Post: 04-09-2015, 05:13 PM
  3. Replies: 4
    Last Post: 10-09-2014, 07:09 PM
  4. Replies: 6
    Last Post: 05-14-2012, 07:24 AM
  5. Split form on append query
    By OneToLearn in forum Queries
    Replies: 1
    Last Post: 04-16-2012, 11:20 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