473,414 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Play MP3 with Nero in MS Access

I'm trying to play a mp3- file in MS Access VBA. I already finda script that opens mine music player NERO. But how could I play a mp3 file?
Jul 27 '08 #1
2 3111
nico5038
3,080 Expert 2GB
The easy way is to insert a hyperlink and select the mp3 file.
This will open the file with the default application related to the file-extension.

Having these links in a table will allow you to build an mp3 collection...

Nic;o)
Jul 27 '08 #2
ADezii
8,834 Expert 8TB
If you do not want to be bothered with Hyperlinks, then:
  1. In a Stand Code Module, Copy and Paste the following Declaration:
    Expand|Select|Wrap|Line Numbers
    1. Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" ( _
    2. ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
    3. ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
  2. Play the *.mp3 File, it will be Opened by the Default Appplication registered to play *.mp3s:
    Expand|Select|Wrap|Line Numbers
    1. Dim strFileName As String
    2. Dim strAction As String
    3. Dim lngRetVal As Long
    4.  
    5. 'Edit this, Absolute Path to *.mp3 File:
    6. strFileName = "C:\<Some Directory>\<Some File.mp3>"  ' the file you want to Open.
    7.  
    8. lngRetVal = ShellExecute(0, "OPEN", strFileName, "", "", 0)
Jul 27 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
Bhanu Murthy
by: Bhanu Murthy | last post by:
Dear Music lovers, I want to copy one Music CD of my friend who brought from US. I want to burn CD using nero 'copy disk' option. I am not able to copy. Reasons displayed are read error in...
1
epots9
by: epots9 | last post by:
i'm just wondering is it possible to burn CD+G disks using nero 7?
0
by: srama | last post by:
I have got Nero 7 software, when I applied for make audio cd i am getting error message " Nero cannot determine the SCSI/ATAPI device, helpme ?
0
by: medin0065 | last post by:
nero full version crack http://cracks.00bp.com F R E E
0
by: bwljgbwn | last post by:
nero 7 ultra edition crack http://cracks.12w.net F R E E
0
by: hopeorpha308 | last post by:
Nero 7 premium reloaded crack
0
by: ch612bunn | last post by:
nero 8 crack
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.