Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2005, 04:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access Error

Access is suddenly behaving as if an entire code module is missing.
 
Quote:
quote:
Quote:
Microsoft Access can't find the module 'DataControl' referred to in a macro expression or Visual Basic code.
I can see the referenced module in the module list. I can even open it and read the code.

Why can't Access find it?

How can I get Access to see the module again?

I've had similar errors before but I can't recall what I did to fix them. I don't want to recreate the database from scratch.

Rand
__________________
Rand
 
Old August 19th, 2005, 01:42 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

If you have a module with the same name as a function or procedure, this can cause this error. Change the name of the module so that it is not the same name of any other function etc in the database.

HTH


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with Access Menus ayazhoda Access VBA 0 June 4th, 2008 04:05 AM
VB Error: Syntax Error or Access Violation codehappy VB How-To 7 October 3rd, 2007 05:41 PM
'Access is denied' error purvin Javascript 4 March 22nd, 2006 04:42 AM
Data Access Error socoolbrewster Access 1 January 7th, 2005 12:53 AM
Error connecting to Access RDEdwards Classic ASP Databases 6 November 5th, 2004 10:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.