Friends, I have a form with a field observations. I created a button to open a popup and add
the observations. In the form I have the popup button to confirm observation.
In the event the click of a button (popup), I have this code:
If MsgBox(“Confirm Observation!”, vbYesNo, “Confirm?”) = vbYes Then
DoCmd.Close
‘force refresh of my conten
Form_fFiltros.combProduto_AfterUpdate
Else
CurrentDb.Execute “DELETE * FROM TblObsQualidade WHERE CodObsQualidade = ” & codObs2 & ” ”
DoCmd.Close
End If
With this code, it closes the popup form, the main form is closed, and the popup form is open.
I’m trying to close the popup form.
Does anyone have a clue on how I correct?
Thank you.