Not There, but it is!

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

When I compile my database I keep getting a message saying that a field is
either mis named or not there. It'sthere I see it and I even deleted it and
renamed it! Still the same result.
Any help appreciated.
Thanks
DS
 
if you're using A2000 or newer, did you turn OFF the Name Autocorrect option
in your database? if not, suggest you create a new blank database, then
immediately turn off Name Autocorrect from the menu bar under Tools |
Options | General tab. compact the db, import all the objects from your
"real" database, compile the code, and compact again.

if that doesn't solve it, post back and maybe one of us can help you figure
out what the problem is.

hth
 
NameAutocorrecr is off so.....This happens occasionaly and knowI can't
remember how to correct it.! So any help is appreciated.
Thanks
DS
 
DS said:
When I compile my database I keep getting a message saying that a
field is either mis named or not there. It'sthere I see it and I
even deleted it and renamed it! Still the same result.
Any help appreciated.

This happens when you compile the database? So then, is there a
particular line of code that is highlighted? If so, what is the line of
code? Is it talking about a field in a table, or a control on a form or
report?
 
Me.TxtPrep = " "

Should I just move the Database to another container?
Thanks
DS
 
DS said:
Me.TxtPrep = " "

Should I just move the Database to another container?

I take it that you see a control named "TxtPrep" on your form. Check
the Name property of that control (on the Other tab of its property
sheet), and make sure that it really is named exactly that. If it is,
make sure that the line of code you quoted is in the class module of
that form, and not in a subform on that form nor in a parent form of
which the control is on a subform.

If all that checks out, try changing the reference from "Me.TxtPrep" to
"Me!TxtPrep" and see if it works then.
 
Thanks Dirk
Me!TxtPrep worked! Why I don't know but it works.
Thanks
DS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top