Re: MS Access 2000 run-time error '2465' "can't find the field 'Forms' referred"
- From: "bmagnuso via AccessMonster.com" <u23826@uwe>
- Date: Mon, 24 Jul 2006 23:56:20 GMT
If you are seeing lots of gibberish in MSysAccessObjects, I suggest you get
Access to recreate the database for you.
I should have qualified this. While there are recognizable strings in MSAO
rows,
most have an "wingding" graphic box in place of what I guess would be regular
characters
in each row. I might copy the DB and just try a mass edit to see if anything
breaks.
Follow steps for first symptom in: Recovering from corruption at: http://allenbrowne.com/ser-47.html
I did, and when I imported from the original DB to a test DB, the problem
came along. I went
incrementally, when I imported the forms, macros and modules, it broke the
same way.
There is a free utility to check your tables for bad field names etc here: Database Issue Checker
at: http://allenbrowne.com/AppIssueChecker.html
It found no probs.
If you open your form in design view, the left-end of the toolbar has a
drop-down for selecting the controls by name. Controls are listed
alphabetically, so you could find any control named Forms there. In the
form's module (code window), you can use Edit in the Find menu to find any
occurance of Forms.
I'm using Access 2000, and I can't find a drop-down for selecting controls as
you mention.
Back to the line of code that blows up (marked by <<<<):
Me.Bookmark = rs.Bookmark
If Not IsNull(Me.OpenArgs) Then
Dim strQueryOnID As String
Dim rs As DAO.Recordset
strQueryOnID = Me.OpenArgs
Set rs = Me.RecordsetClone
rs.FindFirst strQueryOnID
If Not rs.NoMatch Then
Me.Bookmark = rs.Bookmark <<<<
End If
End If
Comment: I'm a 'C' programmer, not an Access VB or Office VB programmer.
This line that
stops program execution, ...if this was in 'C' we'd be dealing with two local
structures (the dot
seperates the structure name from structure member), and whatever value is in
struct rs
variable Bookmark is assigned to struct Me variable Bookmark. No other
variables are
involved in the _assignment_. But, apparently, at this point in program
execution there's
something more than _assignment_ going on, manifest by the error message
talking not
about "Bookmark" variables, but some missing field:
Microsoft Access can't find the field 'Forms' referred to in your expression
Humor me in my 'C' vernacular. Ok, in "debug" mode, in the "Locals" window,
I poked around
in the variables listed on the RIGHT side of "Me." as well as the right side
of "rs." The closest
I can come is Me.Form (not Forms) and rs.Fields. If I poke further, I get
deep into a rat's nest
of (apparently) more Access intrinsic settings and (Form) control details.
Now, if I pay attention only to Me.Bookmark and its subordinate structure
"members",
compared to rs.Bookmark and its subordinate structure members, I get (in the
"Locals" view):
(column header)
(Expression) (Value) (Type)
Me.Bookmark
Bookmark(0) 0 Byte
Bookmark(1) 2 Byte
Bookmark(2) 0 Byte
Bookmark(3) 0 Byte
and
rs.Bookmark
Bookmark(0) 11 Byte
Bookmark(1) 2 Byte
Bookmark(2) 0 Byte
Bookmark(3) 0 Byte
Still, nothing about missing field "Forms". I have no idea what rs.Bookmark
(0) = 11 means,
but it doesn't match Me.Bookmark(0), which is 0.
If I just KICK the damn computer really hard, will it straighten out??
:(
This feature of my design I'm trying to fix is _critical_ and really _not
replaceable_, I need to
give the user a list of items, whereupon one is selected and it calls up
another window where
details on that item are displayed. A redesign of the database would only
produce a less
efficient table layout and loss of already-designed functionality.
<sigh>
I can't myself find any field "Forms" anywhere. HELP!
Thanks!
--
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- References:
- Re: MS Access 2000 run-time error '2465' "can't find the field 'Forms' referred"
- From: bmagnuso via AccessMonster.com
- Re: MS Access 2000 run-time error '2465' "can't find the field 'Forms' referred"
- From: Allen Browne
- Re: MS Access 2000 run-time error '2465' "can't find the field 'Forms' referred"
- Prev by Date: Re: Searching data on a subform
- Next by Date: Re: combo box select distinct doesn't work duplicates occur
- Previous by thread: Re: MS Access 2000 run-time error '2465' "can't find the field 'Forms' referred"
- Next by thread: Re: MS Access 2000 run-time error '2465' "can't find the field 'Forms' referred"
- Index(es):
Relevant Pages
|