473,385 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

access 97 - runtime error '2465'

hello

i receive a runtime error '2465' whenever i run my module in access
97. it says
'Run-time error '2465'

OOB Reports can't find the field "DuplicatePayments' referred to in
your expression.

You may have misspelled the field name or the field may have been
renamed or deleted.'

however i checked the tables i have referred in the following module.
any advise would be greatly appreciated.

thanks! jmcn

Public Sub RecoCleaner()

Dim loop1 As Long
Dim dummy As String
Dim numloans As Long
Dim loopy As Long
Dim spot As Long
Dim accnum As String
Dim intnum As String
Dim CashBal As String
Dim totalbucket As String
Dim cashrecv As String
Dim securecv As String
Dim totalunpr As String
Dim futuredue As String
Dim duplicatepay As String
Dim lumpcash As String
Dim diff As String
Dim x As Long
Dim recox As Long
Dim data(90000, 12) As String
Dim SSQL As String
Dim db As String
Dim numloans2 As Integer
Dim a As Variant
Dim notfound As Long
Dim dbs As Database
Dim rstOrders As Recordset, rstSorted As Recordset
Set dbs = CurrentDb
'Open Reco33 info into form
DoCmd.OpenForm "frmRECO33OOB"
Forms!frmRECO33OOB.Requery

'Count records
recox = DCount("*", "RECO33OOB")
numloans = 0
spot = 1

'Populate desired info into data array

DoCmd.GoToRecord acForm, "frmRECO33OOB", acFirst
Do Until spot >= recox

DoCmd.GoToRecord acForm, "frmRECO33OOB", acGoTo, spot

If Forms![frmRECO33OOB]![Field1] = " LOAN ACCOUNT" Then
spot = spot + 5
DoCmd.GoToRecord acForm, "frmRECO33OOB", acGoTo, spot

'Check to make sure the loan didn't bomb
If Forms![frmRECO33OOB]![Field1] <> " Loan ignored" Then
spot = spot - 3

DoCmd.GoToRecord acForm, "frmRECO33OOB", acGoTo, spot
numloans = numloans + 1
accnum = Forms![frmRECO33OOB]![Field1]

intnum = right$(Forms![frmRECO33OOB]![Field3], 6)

spot = spot + 2
DoCmd.GoToRecord acForm, "frmRECO33OOB", acGoTo, spot
CashBal = Forms![frmRECO33OOB]![Field2]

spot = spot + 2
DoCmd.GoToRecord acForm, "frmRECO33OOB", acGoTo, spot
totalunpr = Forms![frmRECO33OOB]![Field4]
lumpcash = Forms![frmRECO33OOB]![Field5]

spot = spot + 1
DoCmd.GoToRecord acForm, "frmRECO33OOB", acGoTo, spot
futuredue = Forms![frmRECO33OOB]![Field4]
totalbucket = Forms![frmRECO33OOB]![Field2]

spot = spot + 2
DoCmd.GoToRecord acForm, "frmRECO33OOB", acGoTo, spot
cashrecv = Forms![frmRECO33OOB]![Field2]
duplicatepay = Forms![frmRECO33OOB]![Field4]

spot = spot + 1
DoCmd.GoToRecord acForm, "frmRECO33OOB", acGoTo, spot
securecv = Forms![frmRECO33OOB]![Field2]
diff = Forms![frmRECO33OOB]![Field5]

data(numloans, 1) = accnum
data(numloans, 2) = intnum
data(numloans, 3) = CashBal
data(numloans, 4) = totalbucket
data(numloans, 5) = cashrecv
data(numloans, 6) = securecv
data(numloans, 7) = totalunpr
data(numloans, 8) = futuredue
data(numloans, 9) = duplicatepay
data(numloans, 10) = right$(lumpcash, 16)
data(numloans, 11) = right$(diff, 16)

End If
End If

If spot <= recox Then
spot = spot + 1
End If

Loop

'Populate new Table with Clean data
DoCmd.OpenForm "frmCleanData"
For x = 1 To numloans
Forms![frmCleanData]![LoanAccount].Value = Trim$(data(x,
1))
Forms![frmCleanData]![Internal].Value = Trim$(data(x, 2))
Forms![frmCleanData]![CashBal].Value = Trim$(data(x, 3))
Forms![frmCleanData]![totalbucket].Value = Trim$(data(x,
4))
Forms![frmCleanData]![CashReceivables].Value =
Trim$(data(x, 5))
Forms![frmCleanData]![SecuReceivables].Value =
Trim$(data(x, 6))
Forms![frmCleanData]![totalunpr].Value = Trim$(data(x, 7))
Forms![frmCleanData]![FutureDueItems].Value =
Trim$(data(x, 8))

'runtime error '2465'
Forms![frmCleanData]![DuplicatePayments].Value = Trim$(data(x, 9))
Forms![frmCleanData]![lumpcash].Value = Trim$(data(x, 10))
'runtime error '2465' too...
Forms![frmCleanData]![Differences].Value = Trim$(data(x, 11))

If x <> numloans Then
DoCmd.GoToRecord acForm, "frmCleanData", acNewRec
End If
Next x
' Create dynaset-type Recordset object.
Set rstOrders = dbs.OpenRecordset("Clean Data", dbOpenDynaset)
' Set sort order.
rstOrders.Sort = "LoanAccount"
DoCmd.Close

End Sub
Nov 12 '05 #1
1 8802
please disregard this post. i ended up renaming the fields and it worked.
thanks jmcn

pi******@yahoo.fr (JMCN) wrote in message news:<27**************************@posting.google. com>...
hello

i receive a runtime error '2465' whenever i run my module in access
97. it says
'Run-time error '2465'

OOB Reports can't find the field "DuplicatePayments' referred to in
your expression.

You may have misspelled the field name or the field may have been
renamed or deleted.'

however i checked the tables i have referred in the following module.
any advise would be greatly appreciated.

thanks! jmcn

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Niranjan | last post by:
Access XP Windows XP This code has been working for over 5 years with no problems and all of a sudden I am running into these wierd problems. I have this code to delete a record....
5
by: Lyn | last post by:
Hi, this has been driving me nuts. I'm on Office 2003 SP1, Win XP SP1. I am opening a form with a number of subforms based on various tables. The subforms are populated via the main form's...
3
by: MIG | last post by:
I had a form which used year(date) to compare an input value with the year of today's date. This was working fine. Now, for some reason, I am getting run-time error 2465 "Library Catalogue...
6
by: MLH | last post by:
"The following unexpected error occurred in Sub CopyMySQLbttn_Click, line #250, CBF on frmVehicleChooserform. 2465: "Can't find the field 'forms' referred to in your expression. You may have...
2
by: PW | last post by:
Hi, What the heck is that supposed to mean? I am getting this error on a "Me.Requery" line in a subroutine on a form, but only when I select something from a combo/dropdown box. The *exact*...
7
by: Bob Darlington | last post by:
I'm using the following routine to call UpdateDiary() - below: Private Sub Form_BeforeUpdate(Cancel As Integer) On Error GoTo Form_BeforeUpdate_Error Call UpdateDiary(Me!TenantCounter,...
4
imrosie
by: imrosie | last post by:
Hello all, Yes, another newbie...HELP please. I have a problem compiling a procedure on a form. The 'search customer' form was built on a query. The proc is attached to command button which opens...
4
kcdoell
by: kcdoell | last post by:
Hello: I have the following afterupdate event: Private Sub GWP_AfterUpdate() 'Updates the Total calculation in the control "SumGWP" on the quick reference 'table that is located on the form...
4
by: zufie | last post by:
I have a main form containing a command SEND button that prompts an email form to pop up. The email address(es) that are supposed to appear on the email form are those corresponding to the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.