MushroomKing
Registered User.
- Local time
- Today, 01:27
- Joined
- Jun 7, 2018
- Messages
- 100
Hello
Can anyone explain to me how this works please?
I can't avoid this error and i think its pretty basic.
I'm only a rookie and cant find it on google.
I have a timer event (please dont ask why)
When the field value is "something" it needs to play a sound.
But if there are no records (in my recordsource query), it should just do nothing.
But for some reason, i get the error: 2427 entered an expression that has no value when there are no records available on refresh.
How can i avoid this error?? :banghead::banghead:
Sometime theres just no records, so perpack value wont exist.
My recordsource is a query btw.
Can anyone explain to me how this works please?
I can't avoid this error and i think its pretty basic.
I'm only a rookie and cant find it on google.
I have a timer event (please dont ask why)
When the field value is "something" it needs to play a sound.
But if there are no records (in my recordsource query), it should just do nothing.
But for some reason, i get the error: 2427 entered an expression that has no value when there are no records available on refresh.
How can i avoid this error?? :banghead::banghead:
Code:
Private Sub Form_Timer()
DoCmd.Requery
Me.Refresh
If perpack.Value = 1 Then
API_PlaySound "C:\database\assets\sound\honk.wav"
Else
End If
End Sub
Sometime theres just no records, so perpack value wont exist.
My recordsource is a query btw.