Re: Closing a form automatically if no records
- From: "Arno R" <arraNOcomSPAM@xxxxxxxxxx>
- Date: Tue, 7 Feb 2006 16:05:42 +0100
"Thelma Lubkin" <thelma@xxxxxxxxxxxxxxxxxx> schreef in bericht news:dsacbl$79i$1@xxxxxxxxxx
Arno R <arraNOcomSPAM@xxxxxxxxxx> wrote:
: Private Sub Form_Load()
: If Me.RecordsetClone.RecordCount = 0 Then
^^^^^
why isn't Recordset itself good enough here?
--thelma
: MsgBox "No records.."
: DoCmd.Close
: End If
: End Sub
: Arno R
I guess one an use Me.Recordset also, but I see this property is only available with Access2k or better.
I am used to use Recordsetclone, but it was in the Access 2.0 days that I learned about that ...
Arno R
.
- References:
- Closing a form automatically if no records
- From: Gerry Abbott
- Re: Closing a form automatically if no records
- From: Arno R
- Re: Closing a form automatically if no records
- From: Thelma Lubkin
- Closing a form automatically if no records
- Prev by Date: Re: Report Trouble
- Next by Date: Re: can't filter report in Access2000
- Previous by thread: Re: Closing a form automatically if no records
- Next by thread: Re: Closing a form automatically if no records
- Index(es):
Relevant Pages
|