T
Tandy
I have a textbox named txtShowMonth. I would for when I open the form the
user is prompted to enter a date in short date format (1/1/2005) and then
have that date entered into thetxtShowMonth textbox. This is what I have so
far:
Private Sub Form_Open(Cancel As Integer)
Dim strShowMonth As String
Dim blnDone As Boolean
Do
strShowMonth = InputBox("What month would you like to enter?")
Select Case True
Case (Len(strShowMonth) = 0)
Cancel = True
blnDone = True
End Select
Loop Until blnDone
If Cancel <> True Then
Me.txtShowMonth = strShowMonth
Me.Requery
End If
End Sub
Don't laugh too hard, I have almost no experience with coding. But I do know
I do want an alternative (such as a pop-up calendar) and I want to the code
to be close to the one above (copied to from a very similar form that entered
years instead of dates).
I have repeatedly tried to figure this out, so help would be greatly
appreciated!
user is prompted to enter a date in short date format (1/1/2005) and then
have that date entered into thetxtShowMonth textbox. This is what I have so
far:
Private Sub Form_Open(Cancel As Integer)
Dim strShowMonth As String
Dim blnDone As Boolean
Do
strShowMonth = InputBox("What month would you like to enter?")
Select Case True
Case (Len(strShowMonth) = 0)
Cancel = True
blnDone = True
End Select
Loop Until blnDone
If Cancel <> True Then
Me.txtShowMonth = strShowMonth
Me.Requery
End If
End Sub
Don't laugh too hard, I have almost no experience with coding. But I do know
I do want an alternative (such as a pop-up calendar) and I want to the code
to be close to the one above (copied to from a very similar form that entered
years instead of dates).
I have repeatedly tried to figure this out, so help would be greatly
appreciated!