I have a simple form plays an audio file to ask a child a question. While the audio is playing I wanted to hide two images that represent a YES and NO for them to touch their answer.
My problem is when the code is in the same SUB as the audio file player, it won't hide it. It will UNHIDE them after the audio plays.... and I can use the exact same line by itself from a button and it works. (Me.Image19.Visible = False)
Private Sub DinoImage_Click()On Error GoTo ButtonErrorMe.Image19.Visible = FalseMe.Image20.Visible = FalseDim stID As StringstID = Me.ID.ValuesndPlaySound "C:\HospitalIntake\Audio\Q" & stID & ".wav", SND_ASYNCMe.Image19.Visible = TrueMe.Image20.Visible = TrueExit SubButtonError:DoCmd.Echo TrueDoCmd.SetWarnings TrueDim stErrMSG As StringstErrMSG = MsgBox(Err.Description)End Sub