Results 1 to 4 of 4
  1. #1
    gg80 is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Posts
    328

    Subforms Splitting and filtering

    I have a form with a narrow subform that is getting too tall. The subform consists of a list of items and prices with a fields for entering quantities.



    I would like to shorten the list, by adding a duplicate subform to the screen. . The 1st subform would contain items starting with say, letters A-G and the 2nd form with starting letters H-Z.

    Since the ideal break point letter changes with time, I would like the operator to be able enter the break point letter on the parent form. I would also like the split to occur when the screen is first opened.

    I tried the expression Me.Filter = "item > """ & [Forms]![ParentName]![BreakLetter] & """"
    It works if I actuate it with a button, but not with subform onLoad or onAnything else

    Any help much appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Set the form Filter and FilterOnLoad properties.

    The in code try:

    Me.FilterOn = False
    Me.Filter = ...
    Me.FilterOn = True
    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.

  3. #3
    gg80 is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Posts
    328

    Thumbs up Subforms Splitting and filtering

    Thanks much-this does it-someday I will know why. in messing around, I also found that it works if you list the code twce.

    This site has changed, so I donh't see how to mark this as solved. Thanks again, much appreciated.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Thread Tools on the menu bar above the first post.
    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.

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

Similar Threads

  1. Splitting Numbers before /
    By senn2912 in forum Queries
    Replies: 3
    Last Post: 02-23-2012, 01:03 PM
  2. Question splitting
    By joe1987 in forum Access
    Replies: 1
    Last Post: 11-16-2011, 04:45 PM
  3. Problem linking subforms, filtering and uploading
    By sameerk0286 in forum Access
    Replies: 1
    Last Post: 12-09-2010, 09:18 AM
  4. What is after Splitting!!
    By watzmann in forum Access
    Replies: 3
    Last Post: 09-07-2010, 07:31 PM
  5. Splitting Data
    By thesaguy in forum Access
    Replies: 4
    Last Post: 08-19-2010, 02:43 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