If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > How can I record sound

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-09, 03:55
mhb300 mhb300 is offline
Registered User
 
Join Date: Jan 2009
Posts: 22
Question How can I record sound

Hi everybody,

I want to get a code for records sound, so I searched about it , and I found just this site

ACC2000: How to Record and Play Sounds from Microsoft Access

That for Access 2000 but does not work with 2003... Do you have some information about records sound for Access 2003

Than you
Reply With Quote
  #2 (permalink)  
Old 07-03-09, 04:02
nckdryr nckdryr is offline
Computer Monkey
 
Join Date: May 2005
Location: Oregon
Posts: 1,191
Why wouldn't that work for 2003? There's very few cases I've ran across where Access isn't backwards compatible.
__________________
Me.Geek = True
Reply With Quote
  #3 (permalink)  
Old 07-03-09, 08:27
mhb300 mhb300 is offline
Registered User
 
Join Date: Jan 2009
Posts: 22
Smile

Actually, I did exactly what was in that site, but it does not work.

If you try it, you may understood what happened.

This is the code
Quote:
Option Compare Database

Private Sub PlayMessage___Click()
Me.message.Action = 7
End Sub

Private Sub RecordMessage_Click()
With Me.message
.Class = "soundrec"
.Action = acOLECreateEmbed
.Verb = acOLEVerbPrimary
.Action = acOLEActivate
End With

End Sub
The program in the attachment, If you want to see what I do.

Thank you sir
Attached Files
File Type: zip Record.zip (14.2 KB, 8 views)
Reply With Quote
  #4 (permalink)  
Old 07-03-09, 15:11
nckdryr nckdryr is offline
Computer Monkey
 
Join Date: May 2005
Location: Oregon
Posts: 1,191
There were a few irregularities in the db you attached, I couldn't seem to get rid of them. So I started my own dB (I have 2007 btw, but I saved it also in 2003 format) and did it, and it worked fine. Also, I tweaked what MS suggested just a little as you can see.
Attached Files
File Type: zip SoundRecord.zip (38.6 KB, 12 views)
__________________
Me.Geek = True
Reply With Quote
  #5 (permalink)  
Old 07-04-09, 04:25
mhb300 mhb300 is offline
Registered User
 
Join Date: Jan 2009
Posts: 22
Smile

Thank you so much

I tried it, and it is working , but I cannot record any sound... Did you try it to record?
Reply With Quote
  #6 (permalink)  
Old 07-05-09, 00:17
nckdryr nckdryr is offline
Computer Monkey
 
Join Date: May 2005
Location: Oregon
Posts: 1,191
Yes, mine recorded and played it back, though I didn't test it thoroughly.
__________________
Me.Geek = True
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On