J
james.eacret
Hello all, this subject has been beat to death, and countless hits on
Google regarding it, but alas I still need some direction.
I am working with an Access database that was converted from 97. I am
using Access 2003 on a Windows XP machine.
There is a report that requires a start date, end date, and title.
After those fields are filled it brings up the rptAnnual report...or at
least should bring it up. While running the query it returns an Error
13 Type Mis-Match. When I click debug it highlights the line
generating the error.
Code:
Private Sub RightPAL()
If Not IsNull(EndingDate) Then
If Me!EndDate = EndingDate Then<-----This is the Highlighted Line
If Not IsNull(ParameterCode) Then
If Me!ParamCode = ParameterCode Then
Exit Sub 'If everything is the same, the PAL stays the same
Else 'If anything has changed, though, run the lookup again
LookUpPAL
End If
Else
LookUpPAL
End If
Else
LookUpPAL
End If
Else
LookUpPAL
End If
End Sub
EndingDate is declared in:
Option Compare Database 'Use database order for string comparisons
Dim PAL, EndingDate, ParameterCode As Variant
So, what I am curious is going from 97 to 2000, something changed and
caused this to no longer work. I have not been successful at locating
what part of the code to change.
Any help would better appreciated very much. If you need me to provide
any more information I will be glad to do so.
Google regarding it, but alas I still need some direction.
I am working with an Access database that was converted from 97. I am
using Access 2003 on a Windows XP machine.
There is a report that requires a start date, end date, and title.
After those fields are filled it brings up the rptAnnual report...or at
least should bring it up. While running the query it returns an Error
13 Type Mis-Match. When I click debug it highlights the line
generating the error.
Code:
Private Sub RightPAL()
If Not IsNull(EndingDate) Then
If Me!EndDate = EndingDate Then<-----This is the Highlighted Line
If Not IsNull(ParameterCode) Then
If Me!ParamCode = ParameterCode Then
Exit Sub 'If everything is the same, the PAL stays the same
Else 'If anything has changed, though, run the lookup again
LookUpPAL
End If
Else
LookUpPAL
End If
Else
LookUpPAL
End If
Else
LookUpPAL
End If
End Sub
EndingDate is declared in:
Option Compare Database 'Use database order for string comparisons
Dim PAL, EndingDate, ParameterCode As Variant
So, what I am curious is going from 97 to 2000, something changed and
caused this to no longer work. I have not been successful at locating
what part of the code to change.
Any help would better appreciated very much. If you need me to provide
any more information I will be glad to do so.