×
יריב החביב
Hello,
We have text box (Text57) on a form that we want it to indicate yes or no
if the max value (date) on a table equal to the value (date) on another
text box (monthfort) on the form.
I wrote the below code, but the indication's text boxs (Text57) show all
the time in the value "no", wether the date's are equal or not.
please help
Private Sub Form_Open(Cancel As Integer)
If """" & DMax("sacharmonth", "netoonim_mahlaka") & """" = Me.monthfort Then
Me.Text57.DefaultValue = 1
Else
Me.Text57.DefaultValue = 0
End If
end sub
.........THANK'S
We have text box (Text57) on a form that we want it to indicate yes or no
if the max value (date) on a table equal to the value (date) on another
text box (monthfort) on the form.
I wrote the below code, but the indication's text boxs (Text57) show all
the time in the value "no", wether the date's are equal or not.
please help
Private Sub Form_Open(Cancel As Integer)
If """" & DMax("sacharmonth", "netoonim_mahlaka") & """" = Me.monthfort Then
Me.Text57.DefaultValue = 1
Else
Me.Text57.DefaultValue = 0
End If
end sub
.........THANK'S