changing a ticked box in visual basic?
i have a project that is linked to a microsoft database. one of the queries in the database is linked to a form. in the database there is a ticked box and i want the ticked box to be ticked when the movie is overdue and to be un ticked if it is not overdue
this is the code i used
If txtDueBack > Date Then
chkOverDue.Value = Yes
Else
End If
If txtDueBack.Text <= Date Then
chkOverDue.Value = No
End If
i put this in form load and as a button but it didnt work if you could post an answer using code that would be great
thanks for your help
|