cool thanks...I actually had a look through the search stuff and couldnt find what I was looking for.
I have used some of the suggested code which works fine, however I am getting an error on something else related.
I am trying to determine which form is open, then depending, I am trying to run an event procedure from that form.
This works fine for one form, however returns an error for other stating "Application-defined or object-defined error"...
Here is the code:
*****************
If (CurrentProject.AllForms("JobsBooked"

.IsLoaded) Then
MsgBox "Jobs booked is loaded"
Me.Visible = False
Forms!JobsBooked!CboSearchClient = strName
Forms.JobsBooked.cboSearchClient_AfterUpdate
Forms.JobsBooked.CboSearchClient = ""
DoCmd.Close acForm, stDocName
End If
If (CurrentProject.AllForms("JobsToDo"

.IsLoaded) Then
MsgBox "Jobs To Do is loaded"
Me.Visible = False
Forms!JobsToDo!CboSearchClient = strName
---> Forms.JobsToDo.cboSearchClient_AfterUpdate
Forms.JobsToDo.CboSearchClient = ""
DoCmd.Close acForm, stDocName
End If
*************
Where the arrow is, is where the error is occuring.
Regards,
- Paul