Hello everyone,
I am a new user and have been banging my head trying to figure out how to do this simple little thing!!
I have a field on my form that is derived from another field on that form. I want to place this derived data into a corresponding field in the underlying table. This is the code I am trying to do this with:
Private Sub Rank_AfterUpdate()
Dim dbs As Database
Dim rst As Recordset
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset("TblStudents"
rst.Edit
rst!Rank = Me!Rank
rst.Update
rst.Close
dbs.Close
End Sub
I don't get any errors or messages, but it also doesn't fill the information into the table - although it shows up on the form.
Any help is greatly appreciated!!
Thanks,
Bob
I am a new user and have been banging my head trying to figure out how to do this simple little thing!!
I have a field on my form that is derived from another field on that form. I want to place this derived data into a corresponding field in the underlying table. This is the code I am trying to do this with:
Private Sub Rank_AfterUpdate()
Dim dbs As Database
Dim rst As Recordset
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset("TblStudents"
rst.Edit
rst!Rank = Me!Rank
rst.Update
rst.Close
dbs.Close
End Sub
I don't get any errors or messages, but it also doesn't fill the information into the table - although it shows up on the form.
Any help is greatly appreciated!!
Thanks,
Bob