Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date()

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I often use the BuildIn function Date() eg. to set automatically the date when a new record is created.
Never had trouble with it, now I copy my applicaton to a portable. Its the same year version (ms access 2000). I open the application and he start to protest. Doesn't find the function Date() ???? He quarrel for all Date() functions, is there a library missing, not proper installation of access or what else can it be ?
 
I'd check the references:
when in VBE, menu Tools -> References ...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
As PH said, when apps run fine on one machine and not on another or run fine in one version and not when run under a newer version, the first thing you have to think about are missing references.

Here are Doug Steele's detailed instructions on how to troubleshoot the problem:

*** Quote ***

Any time functions that previously worked suddenly don't, the first thing to suspect is a references problem.

This can be caused by differences in either the location or file version of certain files between the machine where the application was developed, and where it's being run (or the file missing completely from the target machine). Such differences are common when new software is installed.

On the machine(s) where it's not working, open any code module (or open the Debug Window, using Ctrl-G, provided you haven't selected the "keep debug window on top" option). Select Tools | References from the menu bar. Examine all of the selected references.

If any of the selected references have "MISSING:" in front of them, unselect them, and back out of the dialog. If you really need the reference(s) you just unselected (you can tell by doing a Compile All Modules), go back in and reselect them.

If none have "MISSING:", select an additional reference at random, back out of the dialog, then go back in and unselect the reference you just added. If that doesn't solve the problem, try to unselect as many of the selected references as you can (Access may not let you unselect them all), back out of the dialog, then go back in and reselect the references you just unselected. (NOTE: write down what the references are before you delete them, because they'll be in a different order when you go back in)

For far more than you could ever want to know about this problem, check out


Just so you know: the problem will occur even if the library that contains the specific function that's failing doesn't have a problem.

**** End Quote ****


The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Thanks for this large answer. I need to do a new test on a portable within two weeks. I was thinking in the same direction, looking for the references.
Its surprisingly that "default" functions start to complain, for reason that the reference is not correct.

If I can get out with the above stuff (I will as said first look on the referennes) I come back.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top