I've read the Access Help on how to set the default value of a an unbound text box to a default value:
Me.TxtBox.DefaultValue = """NULL"""
I want to be able to set the default value of the text box to a string variable, but it seems I don't know the correct syntax.
Dim TxtValue As String
TxtValue = "Default Value"
Me.TxtBox.DefaultValue = TxtValue
The result of the code above is "#Name?" in the text box, not the desired "Default Value" string.
Please help.
Me.TxtBox.DefaultValue = """NULL"""
I want to be able to set the default value of the text box to a string variable, but it seems I don't know the correct syntax.
Dim TxtValue As String
TxtValue = "Default Value"
Me.TxtBox.DefaultValue = TxtValue
The result of the code above is "#Name?" in the text box, not the desired "Default Value" string.
Please help.