Thanks in advance for any help, you'll be a real lifesaver.
Anyway, when I try to update a unbound table based on a bound field in the current record, I get a "No current record" error and the field is not updated. The bound table stores the correct data, but the unbound field fails to update. Anyone have an idea what's wrong?
Thanks...
'********************************
Private Sub Form_AfterUpdate() '*
'********************************
On Error GoTo form_err
Dim db As Database
Dim rs As DAO.Recordset
Dim meetingdate As Date
Set db = CurrentDb
Set rs = db.OpenRecordset("Select * from Contacts WHERE contactID LIKE '& Me!ContactID &'", dbOpenDynaset)
meetingdate = Me!CallDate
With rs
.Edit
!LastMeetingDate = meetingdate
.Update
End With
rs.Close
db.Close
Form_after_update_Exit:
Exit Sub
form_err:
MsgBox Err.Description
Resume Form_after_update_Exit
End Sub
Anyway, when I try to update a unbound table based on a bound field in the current record, I get a "No current record" error and the field is not updated. The bound table stores the correct data, but the unbound field fails to update. Anyone have an idea what's wrong?
Thanks...
'********************************
Private Sub Form_AfterUpdate() '*
'********************************
On Error GoTo form_err
Dim db As Database
Dim rs As DAO.Recordset
Dim meetingdate As Date
Set db = CurrentDb
Set rs = db.OpenRecordset("Select * from Contacts WHERE contactID LIKE '& Me!ContactID &'", dbOpenDynaset)
meetingdate = Me!CallDate
With rs
.Edit
!LastMeetingDate = meetingdate
.Update
End With
rs.Close
db.Close
Form_after_update_Exit:
Exit Sub
form_err:
MsgBox Err.Description
Resume Form_after_update_Exit
End Sub