dschomburg
MIS
I am calling this from the expression builder as = getDate()
Sub getDate()
Dim theDate As Date
Dim strInput As String
Dim strMsg As String
theDate = Format(Now() - 1, "mm/dd/yy"
strMsg = "Please Enter the date, format = mm/dd/yy"
strInput = InputBox(Prompt:=strMsg, Title:="HEY!", Default:=theDate)
End Sub
It seems to work but when I press enter I get an error.
Any help would help a heap.
Dave
Sub getDate()
Dim theDate As Date
Dim strInput As String
Dim strMsg As String
theDate = Format(Now() - 1, "mm/dd/yy"
strMsg = "Please Enter the date, format = mm/dd/yy"
strInput = InputBox(Prompt:=strMsg, Title:="HEY!", Default:=theDate)
End Sub
It seems to work but when I press enter I get an error.
Any help would help a heap.
Dave