Results 1 to 2 of 2

Thread: Play alarm for each time

  1. #1

    Thread Starter
    PowerPoster make me rain's Avatar
    Join Date
    Sep 2008
    Location
    india/Hubli
    Posts
    2,208

    Question Play alarm for each time

    with vb6 + access03
    .............................
    i have a field time(date/time)

    how to accomplish this please
    i want to play a music file for each record set in a table.
    if _
    for each recordset.value = now() then
    playmusic() '
    next
    end if
    please guide me..
    ...
    for each

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Play alarm for each time

    Load all of the times from the database and store them somehow - I would recommend an array or collection.

    Then add a timer to your form with an apt Interval value, and put code in it similar to what you posted.

    If you don't know how to play a sound file, see the "Multimedia" section of our Classic VB FAQs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width