Hi,
Im trying to change a textbox's value when the form loads, however I can't quite seem to get it working.
Basically the form is populated by a view that retrieves info from a back end table. If the date is equal to 01/01/1900 then I want the field to come up as blank.
I have tried doing the following in the Control Source property of the textbox:
IIf(actual_date]=01/01/1900,([txtactual__date], )
In addition I have tried the following code:
Private Sub Form_Load()
If txtactual.value = "01/01/1900" Then
Set txtactual.value = " "
End If
End Sub
But none of the above works, so I'm wondering am I forgetting something blantantly obviously? Any help would be appreciated
Thanks.
Im trying to change a textbox's value when the form loads, however I can't quite seem to get it working.
Basically the form is populated by a view that retrieves info from a back end table. If the date is equal to 01/01/1900 then I want the field to come up as blank.
I have tried doing the following in the Control Source property of the textbox:
IIf(actual_date]=01/01/1900,([txtactual__date], )
In addition I have tried the following code:
Private Sub Form_Load()
If txtactual.value = "01/01/1900" Then
Set txtactual.value = " "
End If
End Sub
But none of the above works, so I'm wondering am I forgetting something blantantly obviously? Any help would be appreciated
Thanks.