Eric, this works for me.
'---------------------------------------------------------------------------------------
' Procedure : subCountQueryRecs
' DateTime : 7/9/2004 16:41
' Author : UpRider
' Purpose : Count number of records returned by a SELECT QUERY
' and display the result in a message box
'---------------------------------------------------------------------------------------
'
Sub subCountQueryRecs(qQuery As String)
Dim intMsgBox as Integer
Dim reccnt As Long
swCancel = False
reccnt = DCount("*", qQuery)
intMsgBox = MsgBox("This selection will process " + Str(reccnt) + "
records", _
vbOKCancel, "R E C O R D S T O P R O C E S S")
If reccnt = 0 Or intMsgBox = vbCancel Then
swCancel = True
End If
End Sub
HTH
UpRider