D
Dwight
We just upgraded to MS Access 2007. I converted the database to 2007. Now
when I try to open the main form I get an erro that the method or data member
not found.
The error is happening on the .edit line of the code below:
Dim rstCompareDate As Recordset
Dim dbsCompareDate As Database
Dim dtCompareDate As Date
DoCmd.OpenForm "frmKeepOpen", acNormal, , , , acHidden
Set dbsCompareDate = CurrentDb
Set rstCompareDate = dbsCompareDate.OpenRecordset("CompareDate",
dbOpenDynaset)
'***************************************************************************
'********Check system date to determine if it is a new day.*****************
'********If it is a new day then the pending actions are updated************
'***************************************************************************
With rstCompareDate
dtCompareDate = !CompareDate
If dtCompareDate < date Then
UpdatePendingActions
UpdatePendingPromotions
End If
.Edit
!CompareDate = date
.Update
End With
....
End Sub
Does anyone have an idea or fix to this problem?
Thanks in advance!
Dwight
when I try to open the main form I get an erro that the method or data member
not found.
The error is happening on the .edit line of the code below:
Dim rstCompareDate As Recordset
Dim dbsCompareDate As Database
Dim dtCompareDate As Date
DoCmd.OpenForm "frmKeepOpen", acNormal, , , , acHidden
Set dbsCompareDate = CurrentDb
Set rstCompareDate = dbsCompareDate.OpenRecordset("CompareDate",
dbOpenDynaset)
'***************************************************************************
'********Check system date to determine if it is a new day.*****************
'********If it is a new day then the pending actions are updated************
'***************************************************************************
With rstCompareDate
dtCompareDate = !CompareDate
If dtCompareDate < date Then
UpdatePendingActions
UpdatePendingPromotions
End If
.Edit
!CompareDate = date
.Update
End With
....
End Sub
Does anyone have an idea or fix to this problem?
Thanks in advance!
Dwight