Results 1 to 4 of 4
  1. #1
    ScubaBart is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Jul 2024
    Posts
    117

    Form won't show data in a Dynaset call but will in a Snapshot call

    File is attached.



    Working further into my bee hive management app, I am now into the Apiary / Hive Inspection part. So, I have a form, F_Log_Inspection_Entry_Edit that details inspection(s) for a specific Apiary that can include multiple Hives. The main form calls on table T_Log_Inspection_Main. This form is called from a higher level form that limits the results to a specific Apiary Inspection. Getting to that point is not an issue.

    The form then has a sub-form, Fsub_Log_Inspection_Detail that calls on a query, Q_Inspection_Detail for its data. When the query is opened by itself with no 'filters', it shows all the Hive Inspections created so far (just two currently). Both Hive Inspections are for the higher level Apiary Inspection dated 7/16/2024, Apiary # 1.

    When either of the forms are opened, the sub-form does not show any results for that Apiary Inspection UNLESS, I set the Recordset Type property to Snapshot.

    Even when opening the subform by itself, if I go to form view, I would expect it to show all the records in the query but it shows nothing unless it's in Snapshot mode.

    Not sure what I'm missing here. The records are clearly returned by the query but when the form is opened standalone, no records when the Recordset Type is set to Dynaset.

    I kinda understand the difference between the two Recordset Types. But the query will allow me to make changes to the data so not sur why the form won't work in Dynaset mode.


    Any thoughts ??
    Attached Files Attached Files

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    I suspect your issue is this
    http://allenbrowne.com/casu-20.html
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,555
    You have Data Entry set to Yes. Change it to No.

    That is the worst named property in Access. It means you can only add records.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    ScubaBart is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Jul 2024
    Posts
    117
    Got it.

    Not sure how the Data Entry property got switched.

    Thanks to both Micron and Welshgasman

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

Similar Threads

  1. Form with call data functions
    By Anugerah in forum Forms
    Replies: 2
    Last Post: 09-27-2018, 05:49 AM
  2. Call back data from 1 day before
    By Anugerah in forum Queries
    Replies: 15
    Last Post: 01-08-2018, 04:08 AM
  3. Call data into subform within a form
    By pwelch in forum Forms
    Replies: 4
    Last Post: 03-30-2017, 09:36 AM
  4. Replies: 3
    Last Post: 01-31-2014, 09:13 AM
  5. Call Excel Data into Access table
    By jiguvaidya in forum Import/Export Data
    Replies: 0
    Last Post: 09-15-2008, 04:58 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