Hi,
I have a form where the user puts dates into 2 text boxes. What I want to happen is to have a third text box have it's value be set to 'Yes' if the first 2 text boxes has a date in them. If either of the first 2 boxes is blank, I want the third box to have it's value changed to 'No'
There is no additional criteria to consider pertaining to the date range or anything like that, just the proviso that both text boxes are populated at the same time to make the third boxs' value 'Yes', else it should be 'No' (Both these text boxes are populated by the user selecting a date from a pop up calendar)
I have tried the following (this is attached to both the first 2 text boxes gofocus events, I have tried this on the after update even too with no luck)
Private Sub RTWI_PR_GotFocus()
If Len([RTWI_PR] & [selfcertrecd] & "") <> 0 Then
Me.PaperWorkReturned = "Yes"
Else
Me.PaperWorkReturned = "No"
End If
End Sub
This almost works but the status of the Yes No textbox changes if i enter or delete a value in either of the first 2 date boxes.
Anyone kick me into the direction of a solution or offer a more sensible way to do this..Xmas rum and cokes are great but not so good for the senses...that's my excuse and Ill stick to that for the foreseeable future...at least into retirement in 30 years time!
Thanks
I have a form where the user puts dates into 2 text boxes. What I want to happen is to have a third text box have it's value be set to 'Yes' if the first 2 text boxes has a date in them. If either of the first 2 boxes is blank, I want the third box to have it's value changed to 'No'
There is no additional criteria to consider pertaining to the date range or anything like that, just the proviso that both text boxes are populated at the same time to make the third boxs' value 'Yes', else it should be 'No' (Both these text boxes are populated by the user selecting a date from a pop up calendar)
I have tried the following (this is attached to both the first 2 text boxes gofocus events, I have tried this on the after update even too with no luck)
Private Sub RTWI_PR_GotFocus()
If Len([RTWI_PR] & [selfcertrecd] & "") <> 0 Then
Me.PaperWorkReturned = "Yes"
Else
Me.PaperWorkReturned = "No"
End If
End Sub
This almost works but the status of the Yes No textbox changes if i enter or delete a value in either of the first 2 date boxes.
Anyone kick me into the direction of a solution or offer a more sensible way to do this..Xmas rum and cokes are great but not so good for the senses...that's my excuse and Ill stick to that for the foreseeable future...at least into retirement in 30 years time!
Thanks