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

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,
talalAsked:
Who is Participating?
 
nico5038Connect With a Mentor Commented:
0
 
RLGoldbergCommented:
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
 
talalAuthor Commented:
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
RLGoldbergCommented:
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
 
talalAuthor Commented:
:( 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
 
RLGoldbergCommented:
You might try to place message boxes into the opening code to try and track down the point of error

dataDOC
0
 
talalAuthor Commented:
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
 
Alan WarrenApplications DeveloperCommented:
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
 
talalAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.