Functions (ie. Date())

J

James C.

I have been working with MS Access 2000 on a MS 2000 professional
workstation. We have a computer that has MS NT 4.0. At this station I can not
get my queries to work for my database.

All of my queries use functions such as Date(). When I try to run these
queries with any function in the criteria field it gives me an error.

Does anyone know how to fix this? I am sure it is a setting, but I don't
know where.
 
F

fredg

I have been working with MS Access 2000 on a MS 2000 professional
workstation. We have a computer that has MS NT 4.0. At this station I can not
get my queries to work for my database.

All of my queries use functions such as Date(). When I try to run these
queries with any function in the criteria field it gives me an error.

Does anyone know how to fix this? I am sure it is a setting, but I don't
know where.

That PC has a missing reference.
Open any module in Design view (or click Ctrl + G).
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."

An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.

See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.

For even more information, see
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
 
O

Ofer

sometimes when you have a reference missing access doesnt recognise this
function, open the code, go to tools, reference, and see if anything is
missing.
if so and you dont need that reference just remove it, if you do need it and
it placed somewhere else, just remove and link again to the new place.
 
J

James C.

It says that I am missing ComSnap 1.0 Type Library and cic 1.0Type Library.
When I run a search I can not find these on my pc. Where can I get these so
that the functions will work?
 
O

Ofer

I dont knew what the ComSnap 1.0 or the cic 1.0Type so I cant help you with it.

first remove the missing reference, run compile and see if you get any error
message.
if you dont get any error message it could be that you dont need it, so
leave it removed, now the functions date() and other should work.
if you get an error message then you should find it, just be sure that the
error you geting its from that.
 
Top