Microsoft KB Archive/174091

= ACC: Sound Object on Form Does Not Play Sound When Clicked =

Article ID: 174091

Article Last Modified on 1/20/2007

-

APPLIES TO


 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q174091



Novice: Requires knowledge of the user interface on single-user computers.



SYMPTOMS
When you click an embedded sound object on a form (such as a Sound Recorder icon), a sound playing application (such as Sound Recorder) does not open as expected. This occurs only after you use the Create New option of the Insert Object command to create the sound object on the form.



CAUSE
If you use the Create New option of the Insert Object command to add a sound object to a form, no application file, such as a wave file (*.wav), is associated with the object. Consequently, when you click the object, no application is started.



RESOLUTION
Associate a sound wave file (*.wav) with the sound object on the form. To do so, follow these steps:

 Start Microsoft Access. Create a new database as follows:

 On the File menu, click New Database. In the New Database dialog box, click the General tab. Click the Blank Database icon and click OK. In the File New Database dialog box, type SoundTest as the name of the database (.mdb).</li> Click the Create button.</li></ol> </li> Create a new form as follows:

<ol style="list-style-type: lower-alpha;"> In the Database window, click the Form tab.</li> Click the New button.</li> Select Design View from the list in the New Form dialog box.</li> Click OK.</li> On the File menu, click Save As/Export.</li> In the Save As dialog box, type Form1 in the New Name box.</li> Click OK.</li></ol> </li> Insert the OLE Object on the form as follows:

<ol style="list-style-type: lower-alpha;"> On the Insert Menu, click Object.</li> In the Insert Object dialog box, click "Create From File" and type in the path for the wave file, C:\Windows\System\Ringin.wav.</li> Click OK.</li></ol> </li>  Right-click the sound object and click Properties. Click the Data tab and set two properties as follows:

<pre class="fixed_text">    Enabled = Yes Locked = No                       </li> Close the Properties box.</li> <li>On the View menu, click Form.</li> <li>Double-click the wave sound icon. Note that the wave file plays.</li></ol>

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> <li>Follow steps 1 - 3 in the "Resolution" section.</li> <li>Insert the OLE Object on the form as follows:

<ol style="list-style-type: lower-alpha;"> <li>On the Insert Menu, click Object.</li> <li>In the Insert Object dialog box click "Create New".</li> <li>Select Wave Sound from the Object Type list.</li> <li>Click the OK button</li></ol> </li> <li>Notice that Sound Recorder starts. Close Sound Recorder.</li> <li> Right-click the sound object and click Properties. Click the Data tab and set two properties as follows:

<pre class="fixed_text">    Enabled = Yes Locked = No                       </li> <li>On the View menu, click Form.</li> <li>Double-click the Wave Sound object (OLE object) in the form. Note that Sound Recorder does not open as expected.</li></ol>

<div class="references_section">