a little progress
Hmph...
Well I guess I'm on my own on this one.
What I'm doing is having Access append a table with a list of filenames from a directory that is currently explicitly defined in the code, but I'll have to work on that. This is what I've got so far:
Option Compare Database
Private Sub Form_Open(Cancel As Integer)
Dim dbs As DataBase
Dim sql As String
Dim Filename As String
Dim myarray()
Dim fs As Object
Dim i As Integer
Set dbs = CurrentDb
' Declare filesearch object.
Set fs = Application.FileSearch
' Set folder to search.
fs.LookIn = "C:\My Music\Wu\"
' Set file name to search for.
fs.Filename = "*.mp3"
' Execute the file search, and check to see if the file(s) are
' present.
If fs.Execute > 0 Then
' Redimension the array to the number of files found.
ReDim myarray(fs.foundfiles.Count)
' Loop through all found file names and fill the array.
For i = 1 To fs.foundfiles.Count
Filename = fs.foundfiles(i)
sql = "Insert Into TblTrackInfo(TrackTitle) " & _
"Values ('" & Filename & "')"
dbs.Execute (sql)
Next i
Else
' Display message if no files were found.
MsgBox "No files were found"
End If
End Sub
I think I can start to append the artists to a table by looking to the directory under which the group of songs is located.
BTW, the idea of this is a media database of my music, I know it seems redundant since media player does this, but I have over 10,000 (80 GB+) of titles, and Media Player, and Music Match, and RealPlayer, and RealOne have an absolutely horrible time dealing with this many records, so I need to make something of my own. I don't need to play anything from it (though that might not be too hard), just organize my tracks and track info.
Is there a way to retrieve the artist and album info from an .mp3 file?
As I think about it, I'm not sure the path will give me this info,
para ejample:
C:\My Music\MP3s\Wu\01. Gravel Pit.mp3
is on Album 'The W'
But this data is neither in the file details, or in the path, so where is it coming from?
As long as I keep my music organized like
C:\artist\album\song.mp3
I'm okay, but somehow all these media players are getting additional track details from something other than the online CDDB, since it works when I'm not online, or even if I add a CD and never go online, just manually type in the artist/album.
Thanks!
-Cort