Results 1 to 6 of 6
  1. #1
    sashless is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    12

    Filter field in subform from a combox in form!

    Hello, i'm new to your forum, i'm reading it a lot, i you gave me a lot of advices, but this, i can't to it on my own, i try it but it doesn't go thrue




    I want to chose field in main form (Ime in priimek), and add afterupdate code, that will filter the field Ime Priimek in subform, so that i would see just records from one person(ime priimek).


    Can who help me with it?

    Link to my database





    LIKE THIS:




    Tnx, Saso
    Last edited by sashless; 03-15-2013 at 05:03 AM.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Sounds like dependent comboboxes. http://datapigtechnologies.com/flash...combobox2.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.

  3. #3
    sashless is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    12
    No, Ime in Priimek combobox is in main form, and in the subform is the table "podatki" where are saving all records from main form.

  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,898
    You have two forms bound to the same data. I think I know what you are attempting but this is not way to do it. You don't need form/subform for this and certainly not two forms bound to same data.

    Comboboxes used to enter filter criteria should not be bound to fields. If they are entry will change the value in record.

    Here is one method to use unbound comboboxes to filter a form http://datapigtechnologies.com/flash...tomfilter.html

    Why does Podatki1 form open with a parameter prompt for ID?
    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
    sashless is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    12
    I was trying to do, but, it's not working, it goes on new record everytime i chose field in combobox.



    Here you go the picture.


    MY TABLES:

    AKTIVNOSTI

    IDaktivnosti
    Aktivnost

    ODDELKI
    IDoddelki
    Oddelek

    Oseba
    IDoseba
    ImePriimek


    Podatki
    IDpodatki
    ImePriimek
    Aktivnost
    Datum vnosa
    Porabljen čas

  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,898
    Did you change to a single form structure? Did you unbind the comboboxes? You revised code? Post for analysis.

    I don't read what ever language that is so no idea what this database is for.

    Did not answer question about the ID prompt.
    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. Replies: 1
    Last Post: 08-16-2012, 01:51 PM
  2. Replies: 19
    Last Post: 07-23-2012, 10:34 AM
  3. Open Form and filter subform
    By gg80 in forum Programming
    Replies: 3
    Last Post: 09-04-2011, 05:05 PM
  4. Replies: 1
    Last Post: 11-16-2010, 08:42 AM
  5. Combox not filling the rest of the form
    By britt britt in forum Forms
    Replies: 2
    Last Post: 10-27-2009, 04:55 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