Help with Error: #Name?

R

Raj

I have this formula in a text box =(13-Month([date_resolved])). The problem
is when the user scrolls through the records they data changes to this
#Name?. Can someone shed some light on why this might be happening..
Thank you
 
J

John Vinson

I have this formula in a text box =(13-Month([date_resolved])). The problem
is when the user scrolls through the records they data changes to this
#Name?. Can someone shed some light on why this might be happening..
Thank you

A couple of possibilities. Is there a field named [date_resolved] in
the Form's recordsource? If not, then the expression has no meaning
and will display as #Name?.

Or, you may have a missing VBA reference causing the Month() function
to fail. This isn't uncommon! Open any module in design view, or open
the VBA editor by typing Ctrl-G. Select Tools... References from the
menu. One of the .DLL files required by Access will probably be marked
MISSING. Uncheck it, recheck it, close and open Access.

If none are MISSING, check any reference; close and open
Access; then uncheck it again. This will force Access to
relink the libraries.

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
R

Raj

John,
Yes, [date_resolved] is in the forms recordsource. I tried what you
suggested but I am still getting the same error any other thing I can try..
Thanks

John Vinson said:
I have this formula in a text box =(13-Month([date_resolved])). The problem
is when the user scrolls through the records they data changes to this
#Name?. Can someone shed some light on why this might be happening..
Thank you

A couple of possibilities. Is there a field named [date_resolved] in
the Form's recordsource? If not, then the expression has no meaning
and will display as #Name?.

Or, you may have a missing VBA reference causing the Month() function
to fail. This isn't uncommon! Open any module in design view, or open
the VBA editor by typing Ctrl-G. Select Tools... References from the
menu. One of the .DLL files required by Access will probably be marked
MISSING. Uncheck it, recheck it, close and open Access.

If none are MISSING, check any reference; close and open
Access; then uncheck it again. This will force Access to
relink the libraries.

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
J

John Vinson

John,
Yes, [date_resolved] is in the forms recordsource. I tried what you
suggested but I am still getting the same error any other thing I can try..
Thanks

Hrm. Try

=(13-Month(CDate([date_resolved])))

just to coerce the contents of the textbox to Date/Time.

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 

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

Top