Error - Undefined function

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Error - Undefined function

Post by scottb »

Hi everyone,
In one of my databases I just started receiving the following error: Undefined function 'TimeLapse' in expression. I can close the msg box however I cannot access (actually aren't there anymore) any of my objects from within the VBA environment. I am running this database from a dropbox folder and it is the only database that is experiencing any issues.

I can't find much information about this. Has anyone seen this and know how to resolve it?
Thank you.
-Scott

User avatar
HansV
Administrator
Posts: 78589
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Error - Undefined function

Post by HansV »

What happens if you copy the database to a local folder?
Best wishes,
Hans

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Error - Undefined function

Post by scottb »

I tried that and still receive the error.

User avatar
HansV
Administrator
Posts: 78589
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Error - Undefined function

Post by HansV »

What happens if you select Database Tools > Compact and Repair Database?
Best wishes,
Hans

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Error - Undefined function

Post by scottb »

Tried that too. Same problem.

User avatar
HansV
Administrator
Posts: 78589
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Error - Undefined function

Post by HansV »

One more: in the Visual Basic Editor, select Tools > References...
If one or more of the selected references starts with 'MISSING:', clear their check boxes, then click OK.
Best wishes,
Hans

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Error - Undefined function

Post by scottb »

Thanks Hans. None are missing. ......getting a sinking feeling about this :-(

User avatar
HansV
Administrator
Posts: 78589
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Error - Undefined function

Post by HansV »

It looks like the database has become corrupted.
Create a new database, and try to import all database object from the problem database into the new one.
What is the result?
Best wishes,
Hans

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Error - Undefined function

Post by scottb »

It's hosed. Most of the forms and reports would not import "object not found" and "no records found in index". No objects available in vb environment. I have a backup that is working from a couple days ago. Thank you for your help...Never saw this one before. Have a great day Hans.

User avatar
HansV
Administrator
Posts: 78589
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Error - Undefined function

Post by HansV »

Glad you had a backup - that would have been my last suggestion...
Best wishes,
Hans

User avatar
Wendell
4StarLounger
Posts: 482
Joined: 24 Jan 2010, 15:02
Location: Colorado, USA

Re: Error - Undefined function

Post by Wendell »

My two cents on your situation: I am of the opinon that running an Access database from DropBox (or GoogleDocs or OneDrive) is fraught with peril. The way Access works, it pulls objects from the "cloud" and then does things, and then puts them back - perhaps in altered form. Any interruption of your Internet connection - or even a hang on your PC is likely to leave the database in an unknown or corrupt state. Best practice is to split a database into a front-end/back-end configuration, but I'm not sure how you would do that with DropBox. Perhaps someone else has experience in trying to do that.
Wendell
You can't see the view if you don't climb the mountain!

scottb
4StarLounger
Posts: 402
Joined: 14 Apr 2010, 15:59

Re: Error - Undefined function

Post by scottb »

Thanks Wendell. Appreciate the input. - Scott