A
Altemir
Got a weird problem ... I have a form in an ADP database and this form
has a "Clear" button that is supposed to reinitialize all the unbound
controls on the form. The code that I put in the OnClick event of the
Clear button is shown below.
The problem is that clicking the button is not clearing the form. I'm
obviously setting all the control values to null but the form doesn't
seem to be requerying them. What am I doing wrong?
Private Sub btnClear_Click()
Me!txtDocID = Null
Me!cboDocType = Null
Me!txtDocNumber = Null
Me!txtRevision = Null
Me!txtRevDate = Null
Me!txtTitle = Null
Me!txtFilePath = Null
Me!cboProgram = Null
Me!cboRespOrg = Null
Me!cboStatus = Null
Me!lblChangeStatus = Null
Me.Requery
End Sub
has a "Clear" button that is supposed to reinitialize all the unbound
controls on the form. The code that I put in the OnClick event of the
Clear button is shown below.
The problem is that clicking the button is not clearing the form. I'm
obviously setting all the control values to null but the form doesn't
seem to be requerying them. What am I doing wrong?
Private Sub btnClear_Click()
Me!txtDocID = Null
Me!cboDocType = Null
Me!txtDocNumber = Null
Me!txtRevision = Null
Me!txtRevDate = Null
Me!txtTitle = Null
Me!txtFilePath = Null
Me!cboProgram = Null
Me!cboRespOrg = Null
Me!cboStatus = Null
Me!lblChangeStatus = Null
Me.Requery
End Sub