Results 1 to 2 of 2
  1. #1
    Annnnn is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2018
    Posts
    17

    udate subform based on query

    Hi!

    I have googled around but can't find a good solution

    I have a form that I want to use to look up a specific experiment in my main table, and add (in selected fields) extra information of this experiment.
    So, I made a query to look up the experiment number I want based on a combo box in the form and this is displayed in a subform in my mainform.


    Everything works but I can't seem to update the subform. So if I close the form and re-open the information is correct but I want it to change upon the button click.

    I've tried .requery but it seems to flicker but the info does not change.
    The query results do change because i did manage to let a list box update the way I want my subform to update..

  2. #2
    Annnnn is offline Novice
    Windows 10 Access 2007
    Join Date
    Feb 2018
    Posts
    17
    Never mind, I Googled some more and found the solutions

    I used code to change the SQL code as impute for my query, and just set the strSQL as recordsource for my subform
    Forms!Isolatie!subIsolation.Form.RecordSource = strSQL

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

Similar Threads

  1. Replies: 2
    Last Post: 03-31-2017, 03:04 PM
  2. Replies: 5
    Last Post: 02-12-2016, 06:46 PM
  3. Calculating from a query based subform
    By keiath in forum Forms
    Replies: 1
    Last Post: 10-09-2013, 02:59 AM
  4. Replies: 1
    Last Post: 01-08-2013, 02:55 PM
  5. combo box based subform and query help required!!
    By crustycrab101 in forum Forms
    Replies: 3
    Last Post: 05-03-2011, 01:39 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