Results 1 to 8 of 8
  1. #1
    putte11 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18

    requery in subform

    I have made a Masterform with tabs at the top. (Startf)
    One of the tabs show the form PP that is based on the query Hus_ej klart_per_pers2.


    The query is based on a dropdown in form PP.
    If I fire up PP on its own it works fine but not if I run it through Startf.
    Where do I go wrong ?
    Patrik
    Attached Files Attached Files

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if your database is in access 2010 can you convert it to something prior and I can take a look.

  3. #3
    putte11 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18
    It doesnt seem to translate to well into prior versions.
    Patrik

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Probably because when the form is opened as a subform need to include the main form and subform control in the reference:

    Forms!mainformname!subformcontrol.Form.controlname

    Is the subform in Single or Continuous view? Why do you need filter in the subform RecordSource? Synchronizing records with Master/Child Links properties not enough?
    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.

  5. #5
    putte11 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18
    Hhmm..
    The main form consists only of tabs creatrn in layoutview (2010 style).
    Its a task per person form where I can change persons in a dropdown.
    June you actually helped me with just about the same issue a few months ago.
    By then I made the tabs myself, and that works. But there is somethinge strange with these autocreating tabs that I dont understand.
    I cant seem to understand what the mainform name should be. ( I think I´ve tried everything)

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Are you using a tab control or a navigation form? I don't use navigation form. Review https://www.accessforums.net/forms/t...orm-32053.html
    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.

  7. #7
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if your database won't convert, I have to ask. Are you using calculated value or multi value fields in your tables? If so I'd suggest you revisit your design and try to make your structure normalized. Calculated and multi value fields are a big no-no and I don't know why that functionality was added to 2010. If it doesn't hurt the replication of your error you can likely create a copy of your database, delete those fields that are calculated or mutli valued and convert it.

  8. #8
    putte11 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    18
    Solved this one !
    I used navigation a form. A bit strange but the container for ALL tabs was called NavigationSubform. I was looking for a specific container for each tab.
    Correct filter syntax in my query was
    [forms]![Startf].[NavigationSubform].[form].[VEM3]
    VEM3 being my combobox.
    Thanks everybody for the hints.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-31-2012, 01:10 PM
  2. Replies: 11
    Last Post: 09-17-2012, 02:23 PM
  3. Replies: 3
    Last Post: 04-17-2012, 10:28 AM
  4. Replies: 3
    Last Post: 10-10-2011, 06:33 PM
  5. Refresh Requery Subform
    By eww in forum Programming
    Replies: 1
    Last Post: 04-05-2011, 09:19 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