Hey guys!
So I still have my database containing construction sites inspections of such.
To every inspection there are minutes of meeting which should be somehow shown in the database.
The user chooses the file using a form, the file is copied to a specific folder on the server and the UNC path should be saved in the database.
A UNC path looks like that \\server\folder\folder\file.docx
When the user klicks "save inspection" the entry including the path to the file on the server should be saved on the db using this statement
where the last variable "pfad" contains the path.
I suppose it has something to do with the backslashes (because I just inserted the one entity and the value, the statement was fine before) but when I look at the insert variable during debug it looks fine: '\\server\folder\folder\file.docx'
Any ideas on that?
So I still have my database containing construction sites inspections of such.
To every inspection there are minutes of meeting which should be somehow shown in the database.
The user chooses the file using a form, the file is copied to a specific folder on the server and the UNC path should be saved in the database.
A UNC path looks like that \\server\folder\folder\file.docx
When the user klicks "save inspection" the entry including the path to the file on the server should be saved on the db using this statement
Code:
insert = "INSERT INTO Begehung (Datum, Baustelle, Montageleiter, Sicherheitsfachkraft, Leitung, QM, Dateipfad)
VALUES ('" & Datum.Value & "'," & baustelle.Value & "," & mont & "," & sfk & "," & leit & "," & scc & ",'" & pfad & "')"
I suppose it has something to do with the backslashes (because I just inserted the one entity and the value, the statement was fine before) but when I look at the insert variable during debug it looks fine: '\\server\folder\folder\file.docx'
Any ideas on that?