hi guys
sorry for the silly question but i'm banging my head at the moment
when i close a form i run a requery on another form. But if that other form is not open then i get an error massage.
Private Sub Form_Close()
Forms!memorial_search_results.Requery
End Sub
i have tried changing the above to an if..then..else statement but can't get it right
Private Sub Form_Close()
if Forms!memorial_search_results.open then
Forms!memorial_search_results.Requery
else
docmd.close
End Sub
Buth this does not work. what am i doing wrong??
sorry for the silly question but i'm banging my head at the moment
when i close a form i run a requery on another form. But if that other form is not open then i get an error massage.
Private Sub Form_Close()
Forms!memorial_search_results.Requery
End Sub
i have tried changing the above to an if..then..else statement but can't get it right
Private Sub Form_Close()
if Forms!memorial_search_results.open then
Forms!memorial_search_results.Requery
else
docmd.close
End Sub
Buth this does not work. what am i doing wrong??