CharmCityRob
MIS
I have a form where users can add file links to supporting documentation. I am storing the SiteID, along with the file description and file path of the file they browse to.
The problem is the path contains \ in the UNC path and I am getting an error on the INSERT statement. Can someone please provide some guidance?
Current INSERT Statement
'Build INSERT INTO statement.
strSQL = "INSERT INTO tblSiteFileAttachments " _
& "(siteID, faFileDescription, faFileName) " _
& "VALUES (" _
& [sID] & "," _
& "'" & txtFileDesc & "'," _
& "'" & txtFileName & " ')
The problem is the path contains \ in the UNC path and I am getting an error on the INSERT statement. Can someone please provide some guidance?
Current INSERT Statement
'Build INSERT INTO statement.
strSQL = "INSERT INTO tblSiteFileAttachments " _
& "(siteID, faFileDescription, faFileName) " _
& "VALUES (" _
& [sID] & "," _
& "'" & txtFileDesc & "'," _
& "'" & txtFileName & " ')