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.
[blue] Dim sfrm As Form, Msg As String
Dim Style As Integer, Title As String, DL As String
DL = vbNewLine & vbNewLine
sfrm = Me!subFormName.Form
If sfrm.RecordsetClone.RecordCount = 0 Then
Msg = "No Daily Activities for this Record!" & _
"Record can't be saved!" & _
"Enter at least one Activity and try again . . ."
Style = vbCritical + vbOKOnly
Title = "Missing Data Error! . . ."
MsgBox Msg, Style, Title
[purple]Cancel = True[/purple]
End If
Set sFrm = Nothing[/blue]
[blue] Set sfrm = [purple][b]Me[/b][/purple]!frmActivitiesSub.Form[/blue]
And [purple]Me[/purple] is?PHV said:[blue]Replace frmActivitiesSub by the name of the control hosting the subform.[/blue]