
Originally Posted by
dommax
Thank you for your fast answering Ridders52 !
Ok i will try with 3 subforms. Do you know if it is possible to remove the buttons which are placed at the bottom of each form (the buttons that are used to switch to another record) ?
So, i use the "After Update" event and i use a macro to open one form that i have already build before and i filter it with the key selected into the table ? That seem great !
but, how can i know the primary key of the item selected ?
Thank you again..
Open the forms in design view (main & subforms), go to the Form Property sheet & set Record Selectors = No & Navigation Buttons = No
Suggest you use VBA event code to open the main form
I never use macros & suggest you don't as well. VBA is just as easy & much more powerful
Look at your table design for the primary key field
If it's a number field called ID and you have a textbox called txtID you could use code similar to this
Code:
DoCmd.OpenForm "MyFormName", , ,"ID = " & Me.txtID
For a text PK field, use text delimiters instead
Code:
DoCmd.OpenForm "MyFormName", , ,"ID = '" & Me.txtID & "'"