postingart
New member
- Local time
- Tomorrow, 03:41
- Joined
- Jun 27, 2021
- Messages
- 17
I want to attached image and save attached image in specific folder by using vba query
i want to add edit and delete query regarding attachment file.
This is save button code
i want to add edit and delete query regarding attachment file.
This is save button code
Private Sub cmdSave_Click()
On Error GoTo err_msg
CurrentDb.Execute "INSERT INTO ImageList (ImgTitle,ImgPath) VALUES('" & Me.ImgTitle.Text & "','" & Me.ImageTitle.Picture & "') ", dbFailOnError
CurrentDb.Close
MsgBox " Data Has Been Saved Successfully ", vbInformation + vbOKOnly, canMnu
Me.ImgTitle.Text = ""
Me.ImageTitle.Picture = ""
Exit Sub
err_msg:
MsgBox Err.Source & " " & Err.Number & " - " & Err.Description, vbCritical + vbOKOnly, "Error"
End Sub
Attachments
Last edited: