Need to know how to do the vba coding on attaching the file
code
Private Sub Command_Click()
Dim rs1 As Recordset
Set rs1 = CurrentDb.OpenRecordset("cmr_filestorage")
rs1.AddNew
Me.author = rs1.Fields("author")
Me.requestor = rs1.Fields("requestor")
Me.deadline = rs1.Fields("deadline")
Me.category = rs1.Fields("category")
Me.descripton = rs1.Fields("description")
Me.file = rs1.Fields("file")
rs1.Update
rs1.Close
MsgBox "New record added"
End Sub
Problem
I can do the file upload to the user interface but when I hit the button to save the new records error message "Object does'nt support this method" and it's pointing to:
Me.file = rs1.Fields("file")
Question
Somebody can show me how to handle this error im kinda new on ms 2007
thanks,
DM