I am using this to set a default date (on the fly for the user) I know I can go into the field properties and change it, but I don't want the user in there.
Private Sub NIE_Def_Click()
Dim Prompt As String
Dim NIE_Ans
Prompt = "Please enter the current NIE as '##.#'"
NIE_Ans = InputBox(Prompt, "NIE Default")
If IsNumeric(NIE_Ans) Then
Me.NIE.Value = NIE_Ans
Me.NIE.DefaultValue = Chr(34) & NIE_Ans & Chr(34)
End If
End Sub
I am getting the error on the .DefaultValue = as Method or data member not found.
Table: Change_Request
Field: NIE (Double, General, Auto) Lookup =textbox
Form: Start
Toggle Button Name: NIE_DEF