G
Guest
Hi there,
I want to check if a specified table is empty. And when it's empty to Close
the form.
I tried the following, where the CurrentDb.Execute part is not totally ok I
guess..
Private Sub Form_Load()
Dim Query As String
Query = CurrentDb.Execute("SELECT * FROM TableName")
If (Query = Null) Then DoCmd.Close
End Sub
Anybody an idea?
I want to check if a specified table is empty. And when it's empty to Close
the form.
I tried the following, where the CurrentDb.Execute part is not totally ok I
guess..
Private Sub Form_Load()
Dim Query As String
Query = CurrentDb.Execute("SELECT * FROM TableName")
If (Query = Null) Then DoCmd.Close
End Sub
Anybody an idea?