B
Brad
Thanks for reading my question.
I am opening a table as a recordset and want to add a
value to one of the fields in the recordset. I can get
to the record in the recordset, but can't apply the value.
I've tried changing the recordset type, but that doesn't
seem to work for me. I must be doing something wrong.
Here is my code,
Thanks,
Brad
TheStartDateFunction resolves to a date. The field that
I want to add the date to is set to Date/Time
Private Sub DefaultTaxDateInEffect_AfterUpdate()
Dim dbs As Database, rst As Recordset
Dim DefaultEndDate As String
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblDefaultTaxValues", ,
dbAppendOnly)
If Not rst.EOF Then
rst.MoveLast
rst.MovePrevious
rst![DefaultTaxDateExpired] = TheStartDateFunction
End If
End Sub
I am opening a table as a recordset and want to add a
value to one of the fields in the recordset. I can get
to the record in the recordset, but can't apply the value.
I've tried changing the recordset type, but that doesn't
seem to work for me. I must be doing something wrong.
Here is my code,
Thanks,
Brad
TheStartDateFunction resolves to a date. The field that
I want to add the date to is set to Date/Time
Private Sub DefaultTaxDateInEffect_AfterUpdate()
Dim dbs As Database, rst As Recordset
Dim DefaultEndDate As String
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblDefaultTaxValues", ,
dbAppendOnly)
If Not rst.EOF Then
rst.MoveLast
rst.MovePrevious
rst![DefaultTaxDateExpired] = TheStartDateFunction
End If
End Sub