I have image and some text data, I want to save them
this is my button code for saving data:
Code:
On Error GoTo Err_saveandnewbtn_Click
If IsNull(Me.nametxt.Value) Or IsNull(Me.usertxt.Value) Or IsNull(Me.passtxt.Value) Then
MsgBox "fill all required fields"
Me.nametxt.SetFocus
Else
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("users_tbl")
rst.AddNew
rst!fullname = Me.nametxt
rst!user = Me.usertxt
rst!pass = Me.passtxt
rst!aclevel = Me.actxt
rst!tel = Me.teltxt
rst!img = Me.imgatch
rst!nazer_part = Me.partcbo
rst!des = Me.destxt
rst.Update
Me.nametxt = ""
Me.partcbo = ""
Me.usertxt = ""
Me.passtxt = ""
Me.teltxt = ""
Me.imgatch = Nothing
Me.destxt = ""
Me.actxt = ""
Me.nametxt.SetFocus
End If
Exit_saveandnewbtn_Click:
Exit Sub
Err_saveandnewbtn_Click:
MsgBox Err.Description
Resume Exit_saveandnewbtn_Click
End Sub
but when I click on button, it shows this error:
object doesn't support this property or method
how do I solve it? I know the problem is saving image, but how to solve it
thanks