themurph2000
Fat, drunk, and stupid
- Local time
- Today, 15:48
- Joined
- Sep 24, 2007
- Messages
- 181
Hey folks. I'm working on a form that, when a combo box is set to a certain status (from "In Process" to "Ready"), another field in the underlying table should be populated with the current date. Now this can be done in a macro easily if you only needed to record when the combo box's selection is changed (do a SetValue and tie it to the AfterUpdate property). However, I was trying to do some VBA to do this, since it has to be a specific statement in the combo box that triggers it.
For whatever reason, I get a compiling error telling me that there's an End If statement without a block If statement.
Any thoughts? Thanks.
PHP:
Private Sub Project_Status_AfterUpdate()
If Project_Status = "Ready" Then Me![actualDate] = Date()
End If
End Sub
For whatever reason, I get a compiling error telling me that there's an End If statement without a block If statement.
Any thoughts? Thanks.