Solved

Database Can't find the field 'Forms' referred to in your expression

Posted on 2004-04-11
9
1,160 Views
Last Modified: 2007-12-19
I have a database working fine in MS-Access XP.
It used to work fine in MS-Access 97 too..

Now i am trying to open a form in MS-Access 2000 i am getting "Database Can't find the field 'Forms' referred to in your expression"

There are no missing references.

Anyone familiar with this error?

Thank you,
0
Comment
Question by:talal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 3

Expert Comment

by:RLGoldberg
ID: 10802341
Two thoughts:

1) What version is the database in?  Is it in 2002 and you are trying to run it in a previous version?

2) You might have a field reference that has been formatted bad.  I have seen this when the query changes around the references.  Look to see if your query or data source is referencing something on the form (Forms!frmName!ctrName).

Good Luck!
Code On...
dataDOC
0
 

Author Comment

by:talal
ID: 10802494
It is 2000 format.
There are alot of references Form!FieldName
I have taken this from another developer. To my surprise this works in XP AND 97. I am not sure why wouldnt work for 2000.

There are TOO MANY references like (Form!FieldName) form example:
Form!txtCustomerID
in queries. This database has few hundereds of quesries.. i am trying to avoid changing them one by one.

What is puzzeling me is why worked in other versions of ACCESS and failed in 2000?

May be i am missing something..
Is there anyway i can see WHERE the problem is?

When it gives me this error ACCESS freezes for fre seconds then quits.
0
 
LVL 3

Expert Comment

by:RLGoldberg
ID: 10802540
Just focus on that particular form that you are opening that is causing the crash...

1) Identify all of the querries that are used on the form and try to open each query seperately to verify that they are or are not working.  If they are all working go onto #2
2) Open the code behind the form and search for all instances of the word "Forms" and see if any of them are orphaned
3) You could chang ethe code behind the form to read me.fieldname instead of form!fieldname, this should reduce the error potential.

Good Luck!
dataDOC
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:talal
ID: 10802573
:( done that... the form that is opening has more than 150 object!!! the previous developer had it layered.

Well... gatta keep trying.

Thank you,
0
 
LVL 3

Expert Comment

by:RLGoldberg
ID: 10802585
You might try to place message boxes into the opening code to try and track down the point of error

dataDOC
0
 
LVL 54

Accepted Solution

by:
nico5038 earned 125 total points
ID: 10802599
0
 

Author Comment

by:talal
ID: 10803112
RLGoldberg: Because i dont have the option of debugging i believe that the error is caused in a list or something.. so having a message box wont work (i think) however i will try anyway.

nico5038: Yes i will try that.. i hope it is something as simple.

Does anyone know if the technique of using [Form]![txtCustomerID] works? I was surprised that it did in XP and 97 because i have always used [Forms]![frmName]![cntName]

Thanks everyone... i hope that i will get this project complete tonight :p

0
 
LVL 26

Expert Comment

by:Alan Warren
ID: 10803322
The syntax [Form]![txtCustomerID] works definately works in acc 2000.

If you have multiple versions of access installed on your machine you may have corrupted the references, is it possible to test the db on another machine that only has win2000 installed. If it runs on virgin win2000 machine, the quickest fix may be to reinstall access 2000 on your development machine.

Alan
0
 

Author Comment

by:talal
ID: 10817597
Thank you all. although i would like to give all of you points .. Actually Nic's was the first to point out the SPs.. Thanks all.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question