S
Stockwell43
Hello,
I have a main form for inputting data and there is a checkbox for Complete
that when clicked will display the current date and this works fine. Here is
the code I put in the click event of the checkbox:
Private Sub Completed_Click()
Dim intValue As Integer
intValue = Completed.Value
Select Case intValue
Case 0
DateCompleted = Null
Case Else
DateCompleted = FormatDateTime(Now(), vbShortDate)
End Select
End Sub
I have another form that displays ONLY shows the task that are overdue which
is updated from a query(main form is from a table). When I open the overdue
form and click on the completed checkbox, it shows it checked on the main
form for that task but the current date in the Date completed field is still
blank. How do I get the date field to fill in when I click the checkbox from
the other form, do I somehow have to reference the form name?
Thanks!!
I have a main form for inputting data and there is a checkbox for Complete
that when clicked will display the current date and this works fine. Here is
the code I put in the click event of the checkbox:
Private Sub Completed_Click()
Dim intValue As Integer
intValue = Completed.Value
Select Case intValue
Case 0
DateCompleted = Null
Case Else
DateCompleted = FormatDateTime(Now(), vbShortDate)
End Select
End Sub
I have another form that displays ONLY shows the task that are overdue which
is updated from a query(main form is from a table). When I open the overdue
form and click on the completed checkbox, it shows it checked on the main
form for that task but the current date in the Date completed field is still
blank. How do I get the date field to fill in when I click the checkbox from
the other form, do I somehow have to reference the form name?
Thanks!!