I have simple form with 3 unbound text boxes. One text box get path (Hyperlink) from OpenFileDialog box.
On Save using simple sql statement as
strsql = "INSERT INTO fs_attachment_tbl (Attachment_Type_Id, Hyperlink, Site_id)" & _
" VALUES(" & Me.cboAttachmentType & ", '" & me.txtFilePath & "', " & Me.Site_ID & ")"
CurrentDb.Execute strsql
And I have error description:
Syntax error in string in query expression ''C:\Comcast\documents\Work Order System Overview\CCS Work Order System (v 6.3).doc'.
Err.Number = 3075
When I copied this path to the MS word from text box and after that I copied from MS word back to text box.
No Error appeared during the same insert statement.
Record was saving successful
How I can save record with hyperlink
Thank you
Mikhail
On Save using simple sql statement as
strsql = "INSERT INTO fs_attachment_tbl (Attachment_Type_Id, Hyperlink, Site_id)" & _
" VALUES(" & Me.cboAttachmentType & ", '" & me.txtFilePath & "', " & Me.Site_ID & ")"
CurrentDb.Execute strsql
And I have error description:
Syntax error in string in query expression ''C:\Comcast\documents\Work Order System Overview\CCS Work Order System (v 6.3).doc'.
Err.Number = 3075
When I copied this path to the MS word from text box and after that I copied from MS word back to text box.
No Error appeared during the same insert statement.
Record was saving successful
How I can save record with hyperlink
Thank you
Mikhail
Last edited: