Solved

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

Posted on 2004-04-11
9
1,156 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
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
 

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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Refreshing a form in Access when saving data? 3 42
Tags from access to excel 3 27
Run Time Error 3075 15 43
Operation must use an updatable query 4 24
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now