G
Guest
Hi everyone!
I have some problems with the database (Access 2002) i'm trying to create.
I got something like a "master table" and some other tables (client,
conversations...) linked to the master table in one-to-many realationships. I
want the user to enter new data and records in one "basic" form where all the
data concerning the case can be entered into a record in the "master" table
(T_Case). I added some toggle and command buttons which open the forms for
the other tables on the many side of the one-to-many relationships. I have no
problems with opening these forms and they only show those records related to
the case they were opened from.
But when i try to add a record in these forms i have to enter the CAseID
again and i don't really want the user to do something with this ID.
Is there a way that i can make a button like "Add Conversation" which opens
a blank form (F_Conversation) which already contains the CAseID from the
parent table???
I tried Macros (something like openform... Setvalue...) and Codes:
DoCmd.OpenForm "T_Conversation", acNormal,,,acFormAdd
Forms!F_Conversation.TCon_CaseID = Me.TCase_CaseID '
(based on a code in one of the threads i found here in this forum)
but it did not really work.
Can anyone help me on this?
I have some problems with the database (Access 2002) i'm trying to create.
I got something like a "master table" and some other tables (client,
conversations...) linked to the master table in one-to-many realationships. I
want the user to enter new data and records in one "basic" form where all the
data concerning the case can be entered into a record in the "master" table
(T_Case). I added some toggle and command buttons which open the forms for
the other tables on the many side of the one-to-many relationships. I have no
problems with opening these forms and they only show those records related to
the case they were opened from.
But when i try to add a record in these forms i have to enter the CAseID
again and i don't really want the user to do something with this ID.
Is there a way that i can make a button like "Add Conversation" which opens
a blank form (F_Conversation) which already contains the CAseID from the
parent table???
I tried Macros (something like openform... Setvalue...) and Codes:
DoCmd.OpenForm "T_Conversation", acNormal,,,acFormAdd
Forms!F_Conversation.TCon_CaseID = Me.TCase_CaseID '
(based on a code in one of the threads i found here in this forum)
but it did not really work.
Can anyone help me on this?