G
Guest
Hi there,
I'm still waiting for my VB book to show up with all the syntax explained
and I kinda need to get a small thing done.
The information I'm handling is Service Requests. I have an Is_Closed value
that is manipulated by the user through a check box, if Is_Closed is set to
true then the request has been dealt with.
I also have a Time record that records the time it took to sort out each
request - when a request is first entered the Time_Opened is set to Now() by
default. When it is closed then Now() is evaluated and stored in Time_Closed.
The time taken being Closed - Opened or something like that.
The service handler can re-open a closed service request by clicking on the
check box again, when it is re-closed I want to re-evaluate Time_Closed to
Now().
Here's what I've worked out.
On_Click
If Is_Closed.PreviousValue Is True Then
Is_Closed = False
Else
Is_Closed = True
Time_Closed = Now()
End If
End Sub
The logic I can understand but I don't know any syntax. I've looked around
the net but can't find a decent Syntax site. If anyone could help me out by
translating the above into something resembling VB I'd really appreciate it.
cheers!
I'm still waiting for my VB book to show up with all the syntax explained
and I kinda need to get a small thing done.
The information I'm handling is Service Requests. I have an Is_Closed value
that is manipulated by the user through a check box, if Is_Closed is set to
true then the request has been dealt with.
I also have a Time record that records the time it took to sort out each
request - when a request is first entered the Time_Opened is set to Now() by
default. When it is closed then Now() is evaluated and stored in Time_Closed.
The time taken being Closed - Opened or something like that.
The service handler can re-open a closed service request by clicking on the
check box again, when it is re-closed I want to re-evaluate Time_Closed to
Now().
Here's what I've worked out.
On_Click
If Is_Closed.PreviousValue Is True Then
Is_Closed = False
Else
Is_Closed = True
Time_Closed = Now()
End If
End Sub
The logic I can understand but I don't know any syntax. I've looked around
the net but can't find a decent Syntax site. If anyone could help me out by
translating the above into something resembling VB I'd really appreciate it.
cheers!