C
Céline Brien
Hi everybody,
I would like to update many fields of the CURRENT record of a subform.
I create a query to update these fields and a macro to execute the query.
Then, in the form containing the subform, I created a button to execute the
macro.
The codes are below.
If I execute this macro, it will update ALL the records of the subform.
I would like to update only the CURRENT record.
What codes should I add to the codes below ???
The field in the subform containing the automatic number is NoAuto
Many thanks for your help,
Céline
--------------------------------------------------------------------------------------------------Private Sub AncienneteFaux_Click()On Error GoTo Err_AncienneteFaux_Click Dim stDocName As String stDocName = "AncienneteFauxFeuilleDeTemps" DoCmd.RunMacro stDocNameExit_AncienneteFaux_Click: Exit SubErr_AncienneteFaux_Click: MsgBox Err.Description Resume Exit_AncienneteFaux_ClickEnd Sub
I would like to update many fields of the CURRENT record of a subform.
I create a query to update these fields and a macro to execute the query.
Then, in the form containing the subform, I created a button to execute the
macro.
The codes are below.
If I execute this macro, it will update ALL the records of the subform.
I would like to update only the CURRENT record.
What codes should I add to the codes below ???
The field in the subform containing the automatic number is NoAuto
Many thanks for your help,
Céline
--------------------------------------------------------------------------------------------------Private Sub AncienneteFaux_Click()On Error GoTo Err_AncienneteFaux_Click Dim stDocName As String stDocName = "AncienneteFauxFeuilleDeTemps" DoCmd.RunMacro stDocNameExit_AncienneteFaux_Click: Exit SubErr_AncienneteFaux_Click: MsgBox Err.Description Resume Exit_AncienneteFaux_ClickEnd Sub