I have an invoice form with a combo box to update the status of the invoice. The following code is triggered After Update.
If Me.StatusGroup = "QUOTE" Then
Me.QuoteRequestDate.Visible = True
Me.QuoteRequestDate.Value = Date
Else
Me.QuoteRequestDate.Value = ""
Me.QuoteRequestDate.Visible = False
End If
It works fine in the accdb file, but when I compile to accde and accdr files it will not run. If I comment out the DATE lines and run without the DATE function it works in runtime.
I want to update the date with the current date when the status changes. Is there another way to do this?
If Me.StatusGroup = "QUOTE" Then
Me.QuoteRequestDate.Visible = True
Me.QuoteRequestDate.Value = Date
Else
Me.QuoteRequestDate.Value = ""
Me.QuoteRequestDate.Visible = False
End If
It works fine in the accdb file, but when I compile to accde and accdr files it will not run. If I comment out the DATE lines and run without the DATE function it works in runtime.
I want to update the date with the current date when the status changes. Is there another way to do this?