I have a form that requires the user to enter the type of Interest they want for this schedule. In a drop down either Nominated (which they just enter the figure) or Court (where I'm trying to retrieve the appropriate rate from a table of rates that have a startdate and a stopdate.
I use the following
I keep getting a run time error 2465
" Microsoft Access can't find the field '|1' referred to in your expression
I have checked the syntax
I have used the intermediate window and ? TodaysDateFld and it has todays date in it eg. 17/12/2015
The other fields are all spelt correctly
I'm at a loss to find the problem. Any help would be appreciated
I use the following
Code:
If IntRateTypeFld = "Court" Then
Me.TodaysDateFld = Date
Me.InterestRateFld = DLookup("IntRate", "CourtIntRates", "[TodaysDateFld] Between #" & [StartDate] & "# AND #" & [StopDate] & "#")
Me.InterestRateFld.Enabled = False
Else
Me.InterestRateFld.Enabled = True
End If
I keep getting a run time error 2465
" Microsoft Access can't find the field '|1' referred to in your expression
I have checked the syntax
I have used the intermediate window and ? TodaysDateFld and it has todays date in it eg. 17/12/2015
The other fields are all spelt correctly
I'm at a loss to find the problem. Any help would be appreciated