Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim gdbs As DAO.Database
Dim rst As DAO.Recordset
Set gdbs = CurrentDb()
Set rst = gdbs.OpenRecordset("Test")
If rst.RecordCount() > 5 Then
MsgBox("Sorry, this is the demo version.")
prevButton.SetFocus
addButton.Enabled = False
End If
[blue] Dim DL As String
DL = vbNewLine & vbNewLine
If Me.Recordset.RecordCount > 4 Then
MsgBox "This is the DEMO!" & DL & _
"No more records can be added!", _
vbInformation + vbOKOnly, _
"Demo Record Limit Reached!"
Me.Undo
Me.Undo
End If[/blue]
Me.Recordset.RecordCount
You havn't used it any where near as much as DAO Recordsets! Just remember that which is returned by a forms [blue]Record Source[/blue] [purple]is a Recordset![/purple]alvechurchdata said:[blue]Why do I always miss the simple way?[/blue]
[blue] Me.Recordset.FindFirst "ID = " & Me!ID[/blue]
[blue] Dim DL As String
DL = vbNewLine & vbNewLine
If Me.Recordset.RecordCount > 4 Then
MsgBox "This is the DEMO!" & DL & _
"No more records can be added!", _
vbInformation + vbOKOnly, _
"Demo Record Limit Reached!"
Me.Undo
Me.Undo
[purple][b]Cancel = True[/b][/purple]
End If[/blue]