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 December 1st, 2003, 06:16 PM
Registered User
 
Join Date: Dec 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default please help! VBA in Access

I wrote some VBA code in Access. There are some basic functions like Date(), Left(), Right(),String(). It works fine on my computer. but after I ran it on another computer, it crashed when it came to these functions. It seems the computer can't recognize those functions. What is the problem and what should i do to fix it?

Your help is highly appreciated!

 
Old December 1st, 2003, 07:04 PM
Authorized User
 
Join Date: Oct 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try checking the references section in your VBA source code editor - to get to this, you can go to any code-behind-forms, code-behind-reports, or any module and then select Tools | References.

Be sure that at least "Visual Basic for Applications" is present in the list and checked. It would probably also be helpful to check "Microsoft Access x.x Object Library" (x.x refers to the current version of Access - AccessXP uses 10.0), "OLE Automation", and "Microsoft ActiveX Data Objects 2.1 Library" as well.

Once you have selected the items, go ahead and click the [OK] button. That, in most cases, should take care of the problem.

Good luck.

Warren
:D
 
Old December 3rd, 2003, 04:08 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

make sure that under references there are no items marked as missing.



Sal
 
Old December 3rd, 2003, 08:53 PM
Authorized User
 
Join Date: Oct 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Good point - thanks, Sal.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Code works in Excel VBA but not Access VBA fossx Access VBA 2 May 21st, 2007 08:00 AM
Access VBA Teqlump Access 2 September 10th, 2004 02:33 PM
Access vba rookieat this Access VBA 6 February 7th, 2004 03:01 PM
Access VBA help danielwajnberg Access VBA 3 September 1st, 2003 09:46 AM
Access XP VBA compatibility issues w/ Access 2000 bourgeois02 Access VBA 1 August 19th, 2003 04:14 PM





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