Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61

    empty form

    Hi,


    I have two forms based on their own query from a single table (same for both forms). each form has same combo box. if there are no results from searching one shows empty record while other show none. why the second is different.Click image for larger version. 

Name:	Example2.jpg 
Views:	20 
Size:	31.9 KB 
ID:	53046Click image for larger version. 

Name:	Example1.jpg 
Views:	20 
Size:	25.3 KB 
ID:	53045

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,938
    best guess is one query is updateable, the other is not. Or one form allows additions, the other does not

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Why two identical forms? Or almost identical. There must be something different in property settings. Would have to examine to analyze.
    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.

  4. #4
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    same principle show different records. this are for catching mistakes. show me all records with mistakes if none found mean no mistakes everything is fine. what confuse me that code/macro is identical query same made same way only difference is that they search for different mistake.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Still, why need two forms for this? Are you using queries with static filter criteria? I would use one form and VBA to change filter of form.
    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.

  6. #6
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    i don't know vba so for now i work with queries. is important for me to solve all things i want, later i will do that with vba but i need time for that and with this i can work right now. do no need to wait. what is meaning of static filter criteria?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Static means it is not dynamic, not dependent on user input, it is hard-coded in query, like: WHERE Category = "ABC".

    It is possible to have dynamic input without VBA. Query would reference a control on form for user input, like: WHERE Category = Forms!MyForm!MyTextbox.
    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.

  8. #8
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    most are static. in the examples i choose year to show me mistakes for chosen year. form is already filtered with the criteria from the query.

  9. #9
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    I checked my forms and from all forms that i have only two have this problem. I noticed that they don't have new record so i guess CJ_London was right they are not updateable. forms that don't have problem are based on simple select queries with one or more criteria. those of the forms that have problem are little more complicated one is union query and the other one is made with join of two other queries.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    A UNION query is never updatable.

    A query that is a join of other queries might not be updatable.
    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.

  11. #11
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    so how can i fix those two forms.

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Do you want to edit data? Then use updatable queries.

    Why are you using a form for these queries? Maybe should be reports.

    Don't know enough about your requirements to advise specifics.
    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.

  13. #13
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    one of the forms is only for selecting and printing. actually second too not for editing just preview and printing. i already have reports they work perfectly but want to see something bigger like the form and there i can chose what to see (have more options that way).

  14. #14
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    even these two forms work ok if there are records to return. problem shows only when there are no records to return.

  15. #15
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    here i send you my database tell me what you think. form name is Documents. Delovodnik.zip

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. form with empty sub form
    By bilalo in forum Forms
    Replies: 7
    Last Post: 02-28-2019, 03:56 PM
  2. Replies: 2
    Last Post: 04-23-2012, 10:13 PM
  3. Replies: 4
    Last Post: 11-20-2011, 01:08 PM
  4. Change controls on an empty form
    By Dom in forum Forms
    Replies: 2
    Last Post: 01-19-2011, 08:36 AM
  5. Populate or Empty Form
    By gazzieh in forum Forms
    Replies: 0
    Last Post: 12-02-2009, 05:56 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