Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    ThornofSouls's Avatar
    ThornofSouls is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Location
    Sweden, Gothenburg
    Posts
    42
    I believe it will take a while to get through this, however i will do.
    If you know any good video examples as well on this, i would appreciate it much. New things sink in much easier when i can watch someone do the procedure.



    Anyway, Thx for the help June7.

    I can let you know when i have the filters functional or if i get stuck on the way, and now i fill first set focus one another form which behaves strange, or well it dos as it should but not the way i would like it to be. :P

    //Thorn.

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    Sorry, don't know any video examples. You can download sample db from the referenced link.
    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. #18
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Have you tried Youtube MsAccess Filter on Form or MSAccess Filter By Form or some combination? There are many videos that can help.

  4. #19
    ThornofSouls's Avatar
    ThornofSouls is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Location
    Sweden, Gothenburg
    Posts
    42
    Yes i have been looking around on youtube, there is quite a lot material there, thus harder to find a video there it is well explained.
    Thx for the tip Orange.

    I also believe i have found what it's call, of what i'm trying to do. "Filter a Form on a Field in a Subform". Then i guess i should be able to change the subforms recordsource with a certain command. I have a query which would do the filter i want. Then i just have to feed the filter with the new string or integer when the query needs to be required.

    This is the query i have for the filter.
    Code:
        Dim SQL As String
                SQL = "SELECT tblErrand.ErrandID, tblErrand.ClientID, tblErrand.DatumAtgStart, tblErrand.DatumAtgSlut, tblErrand.Oro, tblErrand.Ansvarig " _
                        & "FROM tblErrand WHERE (((tblErrand.ClientID)=" & Me.OpenArgs & "));"
                Me.subFrmClientEventSummery.Form.RecordSource = SQL
                Me.subFrmClientEventSummery.Form.Requery
    However when i have tried this the form load the form-header and the body is blank. I guess this means i haven't feeded the query with the proper string or integer, or i do not access the subform correctly or it could be both. Then i'm not sure from which control i should access the subform. Thus i think it would be the "afterUpdate" event.

  5. #20
    ThornofSouls's Avatar
    ThornofSouls is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Location
    Sweden, Gothenburg
    Posts
    42
    I checked the sample db June7, it is a really useful filter this not what i'm looking for right now. However it will soon enough
    I'm nut sure where i will place a search from like this one now but that will probably solve itself meanwhile the db is taking from.

  6. #21
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,901
    It still isn't clear to me what you are trying to do but this thread might be discussing what you want https://www.accessforums.net/access/...ues-56115.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. #22
    ThornofSouls's Avatar
    ThornofSouls is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Location
    Sweden, Gothenburg
    Posts
    42
    I manage to get i working now. I found that the relationship between the subform and mainform was incorrect so i corrected that. Then i simply could follow your advice and it worked.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-23-2015, 05:59 PM
  2. Replies: 4
    Last Post: 09-07-2014, 11:41 AM
  3. Replies: 3
    Last Post: 10-30-2012, 01:54 PM
  4. Replies: 2
    Last Post: 04-27-2012, 10:48 AM
  5. HELP! how to send data from table to text file
    By daveofgv in forum Import/Export Data
    Replies: 11
    Last Post: 02-14-2011, 01:22 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