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.
Sub EditClassMods(frmname)
Dim mdl As Module
Dim strLine, strLineChk
strLineChk = "To be sure"
acApp.DoCmd.OpenForm frmname, acDesign, , , , acHidden
If acApp.Forms(frmname).HasModule Then
Set mdl = acApp.Forms(frmname).Module
strLine = Trim(mdl.Lines(16, 1))
If strLine = strLineChk Then
mdl.DeleteLines 16, 1
mdl.InsertLines 16, vbTab & "Insert This"
mdl.InsertLines 17, vbTab & "And This"
Else
MsgBox "There is a mismatch somewhere."
End If
Else
MsgBox "Error: No Module"
End If
Set mdl = Nothing
acApp.DoCmd.Close acForm, frmname, acSavePrompt
End Sub