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] Me![purple][b]TextboxName[/b][/purple].DefaultValue = Me![purple][b]TextboxName[/b][/purple][/blue]
[blue] Dim ctl As Control, DQ As String
Dim Repeat As Boolean, errRepeat As Boolean
Dim Msg As String, Style As Integer, Title, DL As String
DQ = """"
DL = vbNewLine & vbNewLine
Repeat = (Me![purple][b]ButtonName[/b][/purple].Caption = "Lock Repeat Record")
errRepeat = (Me.NewRecord Or Me.Dirty)
If Repeat And errRepeat Then
Msg = "Can't Repeat a New or Currently Edited Record!" & DL & _
"Select a currently saved record or" & DL & _
"Save the record your currently editing." & DL & _
"Then try again . . ."
Style = vbInformation + vbOKOnly
Title = "Can't Repear Error . . ."
MsgBox Msg, Style, Title
Else
If Repeat Then
Me![purple][b]ButtonName[/b][/purple].Caption = "No Repead Record"
Else
Me![purple][b]ButtonName[/b][/purple].Caption = "Lock Repeat Record"
End If
For Each ctl In Me.Controls
If ctl.Tag = "[b]?[/b]" Then
If Repeat Then
ctl.DefaultValue = DQ & ctl & DQ
Else
ctl.DefaultValue = ""
End If
End If
Next
End If[/blue]