Msg box when you get no records in a query

From: Chris (1_at_2.de)
Date: 02/23/04


Date: Mon, 23 Feb 2004 10:39:46 +0200


>From a command button of o form, i display a report based on a query wich
returns the operations made in a period of time.
If I have no records, I get a blank report.
Is possible to get instead of it a MSG BOX with a text like "There are no
operations in the period 'fromDate' - 'toDate' !" (where 'fromDate' &
'toDate' are the dates of the begining and the end of the period taken from
the form)

I would apreciate any ...HEEEELP!!!!