Results 1 to 9 of 9
  1. #1
    cokiere is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6

    Requery Subform doesn't work

    Hello
    I'm working to a simple form with subform.
    Master form:

    ID Key autonumber
    IDOP shorttext
    date
    time
    note

    Subform table
    ID number
    IDO Short text
    date
    time
    product
    price
    note

    linkmaster ID;IDOP
    linkchild ID;IDOP

    I wanna write on note fiel "product and price" through a button. This button open a query:

    INSERT INTO subform ( product, price, )
    SELECT pricelist.product, pricelist.price
    FROM pricelist
    WHERE (((pricelist.IDpr)=1));




    It is very simple but the subform doesn't make requery.

    I tried with set up "afterupdate":
    Me.Subform.form.requery
    and


    Me.subform.requery

    Please can you explain me where I mistake
    Thank you everybody

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    If you have the subForm,why run a query?
    just entire the data into the subForm.

    but the requery does work.

  3. #3
    cokiere is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6

    Re

    Hi!
    Because it's a touchscreen PC. I wanna make a cashpoint.
    It's not so real. Just learning
    Thank You
    See you
    Last edited by cokiere; 04-03-2019 at 07:16 AM. Reason: Re

  4. #4
    cokiere is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6
    ...I mean... append query simulates the keyboard or precisely the button simulates the keyboard

  5. #5
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    I think you misunderstood ranman's suggestion. Use the touch event to run code to enter the data into fields in the subform, instead of an update query on the subform table.

  6. #6
    cokiere is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6

    RE

    Quote Originally Posted by davegri View Post
    I think you misunderstood ranman's suggestion. Use the touch event to run code to enter the data into fields in the subform, instead of an update query on the subform table.
    HI Folks
    I try to explain better:
    I have a form with source a query: ID (PK autonumber), Date, Time, Name, surname.
    As subform I have: ID simple number, date, time, product, price,.
    Linkmaster ID
    Linkchilg ID
    My goal is to get a calculation in subform and to get when i make the calculation in main form at the same time.
    For having very easy this operation I make a button with append query. This query goes directly to the subform.
    Probably do I have to swich the forms?
    I made a form without the main form. But in my opinion is not the same.
    I could make a second form like without button like edit session but for me it's not the same. Forgive me
    Thank you so much for your time
    see you

  7. #7
    cokiere is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6

    subform filtered

    hi
    Please: I'd like show you a simple file. I can't understand. Probably It is a tiny thing for you but for me is a huge...
    The Problem is: I can write in the subform with keyboard but I can't do the same with the append query.
    I hope this attach will be more clear than me
    Thank you

    fromcokiere (1).zip

  8. #8
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    coke-davetri-v01.zip
    Check Bread. It was not adding the foreign key to the subform recordsource.

  9. #9
    cokiere is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6
    Quote Originally Posted by davegri View Post
    coke-davetri-v01.zip
    Check Bread. It was not adding the foreign key to the subform recordsource.
    Hello my Leader
    while hitting my head I Say You Thank you
    I feel a bit embarrassed
    Thanks again

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

Similar Threads

  1. Replies: 3
    Last Post: 07-04-2017, 07:22 AM
  2. Mouse wheel doesn't work with subform
    By louise in forum Forms
    Replies: 5
    Last Post: 09-30-2015, 12:43 PM
  3. Replies: 6
    Last Post: 12-13-2013, 12:38 PM
  4. Replies: 4
    Last Post: 12-31-2012, 01:10 PM
  5. Filter on subform doesn't work
    By Edwardo in forum Programming
    Replies: 6
    Last Post: 11-29-2010, 08:57 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