E
Emmy
Hello,
I have a button on a form that runs the following to find
a record. When I enter the account # and it finds the
record, I don't want to manually have to close the find
box every time. Is there a way to make it close the box
after it finds the record?
Private Sub FindAccount_Click()
On Error GoTo Err_Find_Record_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, ,
acMenuVer70
Exit_Find_Record_Click:
Exit Sub
Err_Find_Record_Click:
MsgBox Err.Description
Resume Exit_Find_Record_Click
End Sub
Thanks!
Emmy
I have a button on a form that runs the following to find
a record. When I enter the account # and it finds the
record, I don't want to manually have to close the find
box every time. Is there a way to make it close the box
after it finds the record?
Private Sub FindAccount_Click()
On Error GoTo Err_Find_Record_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, ,
acMenuVer70
Exit_Find_Record_Click:
Exit Sub
Err_Find_Record_Click:
MsgBox Err.Description
Resume Exit_Find_Record_Click
End Sub
Thanks!
Emmy