S
Sayth
I have a basic form which I have previously discussed. However, after reading
further on Access I decided against storing calculated values in my tables so
changed the form.
The short version, 3 bound fields minutes seconds and hundredths return
value to their table. Minutes input mask is 0;;_ and sec & hun 00;;#, as
minutes will never be double digits. I had an unbound form field to display
final input in a "nice" sports format 0:00:00 (never to be calc or used)
just for readability.
The format in the unbound field is
=Format(([TimeMinutes],"0") & Format([TimeSeconds],":""00""") &
Format([TimeHundredths],":""00"""))
I created an event for each bound field.
Private Sub TimeHundredths_AfterUpdate()
Me!TimeHundredths = Nz(Me!TimeHundredths)
End Sub
Private Sub TimeMinutes_AfterUpdate()
Me!TimeMinutes = Nz(Me!TimeMinutes)
End Sub
Private Sub TimeSeconds_AfterUpdate()
Me!TimeSeconds = Nz(Me!TimeSeconds)
End Sub
Issue the time format doesn't display properly and it appears to be causing
access to crash. An access wizard has popped up to advise I hav crashed may
times recently. It completed reapiring 1 error but random crashing when using
form continues.
How can I get format right and not crash access with my bad vba programming?
further on Access I decided against storing calculated values in my tables so
changed the form.
The short version, 3 bound fields minutes seconds and hundredths return
value to their table. Minutes input mask is 0;;_ and sec & hun 00;;#, as
minutes will never be double digits. I had an unbound form field to display
final input in a "nice" sports format 0:00:00 (never to be calc or used)
just for readability.
The format in the unbound field is
=Format(([TimeMinutes],"0") & Format([TimeSeconds],":""00""") &
Format([TimeHundredths],":""00"""))
I created an event for each bound field.
Private Sub TimeHundredths_AfterUpdate()
Me!TimeHundredths = Nz(Me!TimeHundredths)
End Sub
Private Sub TimeMinutes_AfterUpdate()
Me!TimeMinutes = Nz(Me!TimeMinutes)
End Sub
Private Sub TimeSeconds_AfterUpdate()
Me!TimeSeconds = Nz(Me!TimeSeconds)
End Sub
Issue the time format doesn't display properly and it appears to be causing
access to crash. An access wizard has popped up to advise I hav crashed may
times recently. It completed reapiring 1 error but random crashing when using
form continues.
How can I get format right and not crash access with my bad vba programming?