I am trying to write an If statement into the VB event procedure in Access 2007 for a field called Status on a form called [Issues details].
What I would like, is If the status = "Closed" Then Set the close_dt in table Issues to Now().
Both Status and Close_dt are in teh Issues table, but close_dt.
This is what I have so far,
Private Sub Status_AfterUpdate()
Stop
If Me.Status = "closed" Then
close_dt = Now()
End If
I put the stop in to try and see what it was doing, and it appears to run through the close_dt = New() part, but it doesn't actually update the field?
can someone point me in the right direction? I am still trying to learn coding in general...so talk to me like I'm an idiot!
What I would like, is If the status = "Closed" Then Set the close_dt in table Issues to Now().
Both Status and Close_dt are in teh Issues table, but close_dt.
This is what I have so far,
Private Sub Status_AfterUpdate()
Stop
If Me.Status = "closed" Then
close_dt = Now()
End If
I put the stop in to try and see what it was doing, and it appears to run through the close_dt = New() part, but it doesn't actually update the field?
can someone point me in the right direction? I am still trying to learn coding in general...so talk to me like I'm an idiot!
