Hi, I am not that familiar with VB but I think this will be an easy thing to do. Just not sure how.
I have a continuous form that has a button on each record that will open a single view form (showing only the record selected) with more detailed view. I want to update (requery) the continuous form once the detailed view is closed.
I actually have 3 different continuous forms that all use this same detailed view form. So what I tried doing was write an on close command
The only problem is, this detailed view will only be opened by one of these three forms. So running this code gives me a run-time error '424' Object required. So I assume its becuase 2 of the 3 forms listed above are not open.Code:Private Sub Form_Close() PR_Main.Requery PR_Archived.Requery PR_Delinquent.Requery End Sub
So, the question is, is there a different better way to do this? or can I just put some sort of if statement like "if PR_Main is open, then PR_Main.Requery"
I don't know how to actually write that in VB, but would it work?
Thanks