Thanks John. After digging a little deeper into the very old app, basic human intelligence prevailed and I just tweaked whatever filter might have been in affect and processed as needed with a clone.
(Whatever possessed me years ago to name a table field that includes a dash character totally alludes me. Same can be said of "blanks". Including "EMA As e-MailAddr" in a query is okay most of the time, but not everywhere. At the moment, I can't remember the exact context where the EMA reference failed at Runtime.)
Code:
Private Sub cmdEMAToCB_Click()
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
' Unless invoked via the "Selected" UI, the current recordset may or may not have any
' EMA's. With that, we append additional criteria to the existing RecordSource to
' exclude records that do not include EMAs.
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
If Me.FilterOn Then 'Applies to both QRegistry AND QGroupings
Me.Filter = Me.Filter & " AND not isnull(Registry.[e-MailAddr])"
Else
Me.Filter = "not isnull(Registry.[e-MailAddr])"
Me.FilterOn = True
End If
Me.Requery
EMAtoCB ("Clone") 'Get full or filtered set (EMAtoCB will now have a clean DOA Recordset to process)
End Sub
Thanks again,
Bill