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 "DuplicatePayme nts' 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 "frmRECO33O OB"
Forms!frmRECO33 OOB.Requery
'Count records
recox = DCount("*", "RECO33OOB" )
numloans = 0
spot = 1
'Populate desired info into data array
DoCmd.GoToRecor d acForm, "frmRECO33O OB", acFirst
Do Until spot >= recox
DoCmd.GoToRecor d acForm, "frmRECO33O OB", acGoTo, spot
If Forms![frmRECO33OOB]![Field1] = " LOAN ACCOUNT" Then
spot = spot + 5
DoCmd.GoToRecor d acForm, "frmRECO33O OB", acGoTo, spot
'Check to make sure the loan didn't bomb
If Forms![frmRECO33OOB]![Field1] <> " Loan ignored" Then
spot = spot - 3
DoCmd.GoToRecor d acForm, "frmRECO33O OB", acGoTo, spot
numloans = numloans + 1
accnum = Forms![frmRECO33OOB]![Field1]
intnum = right$(Forms![frmRECO33OOB]![Field3], 6)
spot = spot + 2
DoCmd.GoToRecor d acForm, "frmRECO33O OB", acGoTo, spot
CashBal = Forms![frmRECO33OOB]![Field2]
spot = spot + 2
DoCmd.GoToRecor d acForm, "frmRECO33O OB", acGoTo, spot
totalunpr = Forms![frmRECO33OOB]![Field4]
lumpcash = Forms![frmRECO33OOB]![Field5]
spot = spot + 1
DoCmd.GoToRecor d acForm, "frmRECO33O OB", acGoTo, spot
futuredue = Forms![frmRECO33OOB]![Field4]
totalbucket = Forms![frmRECO33OOB]![Field2]
spot = spot + 2
DoCmd.GoToRecor d acForm, "frmRECO33O OB", acGoTo, spot
cashrecv = Forms![frmRECO33OOB]![Field2]
duplicatepay = Forms![frmRECO33OOB]![Field4]
spot = spot + 1
DoCmd.GoToRecor d acForm, "frmRECO33O OB", 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 "frmCleanDa ta"
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]![DuplicatePaymen ts].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.GoToRecor d acForm, "frmCleanDa ta", acNewRec
End If
Next x
' Create dynaset-type Recordset object.
Set rstOrders = dbs.OpenRecords et("Clean Data", dbOpenDynaset)
' Set sort order.
rstOrders.Sort = "LoanAccoun t"
DoCmd.Close
End Sub 1 8840
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.go ogle.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 "DuplicatePayme nts' 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
I am getting error 2465.
|
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 Current event. I am using
similar code to open each of the subforms successfully -- except for this
one case which gives the above error.
I have simplified the SQL to its most basic level. It runs just fine as a
query. I just can't make it work...
|
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 database cannot find the field 'year' referred to in your
expression."
Obviously, year is not a field, it's a built-in function. I think the
error may only relate to this particular form. What can be going on
here?
|
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 misspelled the
field name, or the field may have been renamed or deleted."
The above error is returned when running the following click code.
I don't understand what the error means.
Private Sub CopyMySQLbttn_Click()
On Error GoTo...
|
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* same code is run when
I do other things (like press the Save button or tab through that
control).
I have searched every control, involved queries and tables and I can't
find anything that looks fishy.
| |
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, "sfTenantDetailsOther")
Exit Sub
Form_BeforeUpdate_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") " _
& "in procedure Form_BeforeUpdate in Line " & Erl & "."
|
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 up another form (Orders). At first I got the error 2450 (can't find form). After trying to compile (or recompile and save), it began recognizing the form,,,, then it started giving me 2465, can't find the fields.So after reading some other similar...
|
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
With Me!
DoCmd.Requery
|
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 respective agency record appearing on
the main form at the current time.
Instead, what I get is the email form without the appropriate
information in the textboxes of the email form.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |