Seems to me the answer would be to close the second form if it has no records and present a message saying whatever you want about that. How depends on what you do or don't want to see. To not see the form, open it invisible, count its records and if count = 0, close the form otherwise make visible. Or just let the form open, count, message if 0 then close the form after user dismisses the message box. The count would be Me.Recordset.RecordCount.
EDIT - please post indented code within code tags (# on forum toolbar) to make it easier to read. I suspect your modules don't have Option Explicit at the top - you did not declare strMessage (that's the clue)
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.