You can have Access clear the selection from a combo box in a data entry form so that the user starts fresh with each new record. See how to make this user-friendly tweak.
You’ve created a data entry form that uses a combo box, as shown in Figure A. However, when the user clicks the next record button, the previous record’s combo box selection is still visible.
To clear the entry for entering the next record, follow these steps:
Private Sub Form_Current()
On Error Go to ErrorHandler
Me![cboname of box]= Null
ErrorHandlerExit
Exit Sub
ErrorHandler:
MsgBox "Error No: " & Err.Number &": Description: " & Err.Description
Resume ErrorHandlerExit
End Sub
Now when the user moves to the next record, the previous selection will not appear.
Check out the Microsoft Access archive and catch up on other Access tips.
Help users increase productivity by automatically signing up for TechRepublic’s free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.