Ok great!Now I'm getting a syntax error in my SQL statement. Also you don't need the column names unless your adding info to items that are not in order. Anyway, I'm getting a syntax error now. What's wrong with it now?
VB Code:
'Use SQL to insert the information in the strings into the table SQL = "INSERT into " & table & "(FilePath, Filename, Filesize, Artist, Title, Album, Frequency, Bitrate, Length, Track)VALUES ('" _ & Replace(strFilepath, "'", "''") & "','" _ & Replace(strFileName, "'", "''") & "','" _ & Replace(strFileSize, "'", "''") & "','" _ & Replace(strArtist, "'", "''") & "','" _ & Replace(strTitle, "'", "''") & "','" _ & Replace(strAlbum, "'", "''") & "','" _ & Replace(strFrequency, "'", "''") & "','" _ & Replace(strBitrate, "'", "''") & "','" _ & Replace(strLength, "'", "''") & "','" _ & Replace(strTrack, "'", "''") & "')" Cnn.Execute (SQL)




Now I'm getting a syntax error in my SQL statement. Also you don't need the column names unless your adding info to items that are not in order. Anyway, I'm getting a syntax error now. What's wrong with it now?
Reply With Quote