On my form I have a calculated control that holds a time interval, calculation is done in the query which works ok. The field is disabled.
I have a second control, delay code( also locked) that I want to make active if time interval is >5 minutes. I've set the field property to short time format.
So I looked on the forum and messed around with what I could find that came close and came up with below code. it doesn't give me errors, but it doesn't change a thing as well. I tried putting the code in the afterupdate event of the delay field and the form afterupdate, without result.
I have the feeling it has something to do with format of the time, but don't know how to address this. When I put #00:05# it changes into #12:05:00 AM#. I'm learning every day, but stuck again with this one...
If Me.Delay > "00:05" Then
[Delay code].enabled = True
Else: [Delay code].enabled = false
End If
Thanks, Koen
I have a second control, delay code( also locked) that I want to make active if time interval is >5 minutes. I've set the field property to short time format.
So I looked on the forum and messed around with what I could find that came close and came up with below code. it doesn't give me errors, but it doesn't change a thing as well. I tried putting the code in the afterupdate event of the delay field and the form afterupdate, without result.
I have the feeling it has something to do with format of the time, but don't know how to address this. When I put #00:05# it changes into #12:05:00 AM#. I'm learning every day, but stuck again with this one...
If Me.Delay > "00:05" Then
[Delay code].enabled = True
Else: [Delay code].enabled = false
End If
Thanks, Koen