Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 June 2nd, 2005, 07:29 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 248
Thanks: 0
Thanked 1 Time in 1 Post
Default

As for your last post, you will get an error if you attempt left(x,-1). Left() expects a number greater than zero or it errors. I don't know why you didn't have this problem with the Access 2000 machine unless your tests never ran across the non-existent dot.

But since you informed me that the machine that works has Access 2000 and the machine that doesn't has 2003, I think you have a different problem. My bad for assuming you were using the same version of Access on both machines. Your bad for not telling us that little difference between the machine that works and the one that doesn't.

Access 2003 has new security (which you probably noticed as a result of the macro prompt when you opened a database) and the new "Sandbox" mode. These new features block macros on forms (as well as in reports, queries, etc). I had to open our book "Access 2003 VBA Programmer's Reference" and read chapter 20 (which I wrote) to refresh my memory on this. Left() and Instr() are both blocked by this new security.

In a nutshell, you need to install Jet SP8 and enable the sandbox mode. See the above mentioned book as well as http://support.microsoft.com/default...b;en-us;294698 for complete information about this.

I am confident this will solve your problem. Your error is not exactly the error that Access 2003 gives: "Undefined function 'functionname' in expression". But it is similar enough that I think yours is a variation of the same problem.

I suppose I should admit that since you're telling me you just installed Norton, I'm assuming that you don't go after all of the updates available from MS. May I suggest that you put your project on hold long enough to visit Windows Updates and Office Updates to be sure you have the most current version of everything Microsoft will give you. I recommend going to Windows XP SP2 because of significantly improved security. But you don't have to do that to get the most up-to-date Office applications. And before you go to the Internet to do that, please be sure to enable whatever Firewall protection you have.
 
Old June 10th, 2005, 10:24 AM
Registered User
 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I thought I must let you know that I deleted both the troubling combo boxes in the form and recreated them again in the same form with the same query as source for the combo box and the macro error didn't crop up this time. I hope it is the end of the macro error and I hope it doesn't start popping up again. Thanks very much for the help.

I have another query.
In access forms, how do you disable mouse-wheel movements. What event procedure should I write and what code in the procedure is to be written to disable the mouse wheel operation?
I need this because the forms is bound by a database table and when the wheel is moved the control moves to another record and when I try to clear the form it doesn't work and when I exit, a blank record or record with the incomplete data (depending on when the wheel was moved) gets saved onto the table. So I want to disable the wheel movement.

kvidy.

 
Old June 10th, 2005, 10:36 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Take a look at this thread
http://p2p.wrox.com/topic.asp?TOPIC_...ms=mouse,wheel
-vemaju





Similar Threads
Thread Thread Starter Forum Replies Last Post
Emailing From MS Access 2000 baNTON Access 5 October 13th, 2007 09:58 AM
Database migration MS Access 2003 to MS SQL 2000 ayazhoda SQL Server 2000 3 April 23rd, 2007 11:38 AM
Need to change MS Access 2000 Query gilgalbiblewheel Classic ASP Databases 0 June 13th, 2005 11:10 PM
MS Access 2000 Replication ppenn Access 0 February 3rd, 2005 04:27 PM
Update problem in MS Access 2000 socoolbrewster Access 1 March 12th, 2004 07:09 PM





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