ACC: Sound Object on Form Does Not Play Sound When Clicked
ID: Q174091
|
The information in this article applies to:
-
Microsoft Access versions 7.0, 97
SYMPTOMS
Novice: Requires knowledge of the user interface on single-user computers.
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).
- Click the Create button.
- Create a new form as follows:
- In the Database window, click the Form tab.
- Click the New button.
- Select Design View from the list in the New Form dialog box.
- Click OK.
- On the File menu, click Save As/Export.
- In the Save As dialog box, type Form1 in the New Name box.
- Click OK.
- Insert the OLE Object on the form as follows:
- On the Insert Menu, click Object.
- In the Insert Object dialog box, click "Create From File" and
type in the path for the wave file, C:\Windows\System\Ringin.wav.
- Click OK.
- Right-click the sound object and click Properties. Click the Data
tab and set two properties as follows:
Enabled = Yes
Locked = No
- Close the Properties box.
- On the View menu, click Form.
- Double-click the wave sound icon. Note that the wave file plays.
MORE INFORMATION
Steps to Reproduce Behavior
- Follow steps 1 - 3 in the "Resolution" section.
- Insert the OLE Object on the form as follows:
- On the Insert Menu, click Object.
- In the Insert Object dialog box click "Create New".
- Select Wave Sound from the Object Type list.
- Click the OK button
- Notice that Sound Recorder starts. Close Sound Recorder.
- Right-click the sound object and click Properties. Click the Data tab
and set two properties as follows:
Enabled = Yes
Locked = No
- On the View menu, click Form.
- Double-click the Wave Sound object (OLE object) in the form. Note that
Sound Recorder does not open as expected.
REFERENCES
For more information about sound objects, search the Help Index for "sound
objects," or ask the Microsoft Access 97 Office Assistant.
Additional query words:
FrmOthr IntpOle
Keywords : kbmm kbsound FmrOthr IntpOle
Version : WINDOWS:7.0,97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 28, 1999