M
morna
I the below function behind a field in a form in Access 2003 - but I
can't seem to get it to work. The function fires on the Save Event,
but then errors on the OpenDatabase(....) - I have checked the name of
the database and that is fine.
Any thoughts?
Thanks for your time.
Private Function DischargeDateUpdated()
'Create variables
Dim dbMyDB As Database
Dim rsMyRS As recordSet
Set dbMyDB = OpenDatabase("MST_Referral_Tracking.mdb")
'Debug only
MsgBox "dbopen", vbOKOnly
Set rsMyRS = dbMyDB.OpenRecordset("FollowUp", dbOpenDynaset)
'Debug only
MsgBox "recordset open", vbOKOnly
'Debug only
MsgBox "DischargeDateUpdate function ran.", vbInformation
End Function
can't seem to get it to work. The function fires on the Save Event,
but then errors on the OpenDatabase(....) - I have checked the name of
the database and that is fine.
Any thoughts?
Thanks for your time.
Private Function DischargeDateUpdated()
'Create variables
Dim dbMyDB As Database
Dim rsMyRS As recordSet
Set dbMyDB = OpenDatabase("MST_Referral_Tracking.mdb")
'Debug only
MsgBox "dbopen", vbOKOnly
Set rsMyRS = dbMyDB.OpenRecordset("FollowUp", dbOpenDynaset)
'Debug only
MsgBox "recordset open", vbOKOnly
'Debug only
MsgBox "DischargeDateUpdate function ran.", vbInformation
End Function