473,473 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Invalid Procedure Call or Argument (Left, Mid, etc.)

I am so frustrated - any help is appreciated.

When trying to use common functions like Left and/or Mid I get the
following error:
Run-time Error '5':
Invalid Procedure Call or Argument

In my searches it appears I am not the first, but the solution seems to be
missing references. When I check my references, none are labelled as
missing. I've removed all references and re-added them and the error
persists.

I am using Access 2000 on Windows XP. I uninstalled Office 2000 and
reinstalled, but it did not resolve the issue.

Any suggestions?

--
email: my*****@canada.com // my_nick = mork
Nov 12 '05 #1
6 20638
TC
er, show some code?

TC
"mork" <my*****@canada.com> wrote in message
news:op**************@news.ss.shawcable.net...
I am so frustrated - any help is appreciated.

When trying to use common functions like Left and/or Mid I get the
following error:
Run-time Error '5':
Invalid Procedure Call or Argument

In my searches it appears I am not the first, but the solution seems to be
missing references. When I check my references, none are labelled as
missing. I've removed all references and re-added them and the error
persists.

I am using Access 2000 on Windows XP. I uninstalled Office 2000 and
reinstalled, but it did not resolve the issue.

Any suggestions?

--
email: my*****@canada.com // my_nick = mork

Nov 12 '05 #2
mork wrote:
I am so frustrated - any help is appreciated.

When trying to use common functions like Left and/or Mid I get the
following error:
Run-time Error '5':
Invalid Procedure Call or Argument

In my searches it appears I am not the first, but the solution seems to be
missing references. When I check my references, none are labelled as
missing. I've removed all references and re-added them and the error
persists.

I am using Access 2000 on Windows XP. I uninstalled Office 2000 and
reinstalled, but it did not resolve the issue.

Any suggestions?


What references to you have and what is their order?
Nov 12 '05 #3
>> When trying to use common functions like Left and/or Mid I get the
following error:
Run-time Error '5':
Invalid Procedure Call or Argument
I am using Access 2000 on Windows XP. I uninstalled Office 2000 and
reinstalled, but it did not resolve the issue.


What references to you have and what is their order?


Visual Basic for Applications
Microsfot Access 9.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft DAO 3.6 Object Library
Microsoft Outlook 9.0 Object Library

The app does some work with Outlook automation objects, etc. etc. It all
worked just dandy in the past. Cam back to it after a while to add some
functionality and this error started cropping up (I had not edited
references of any sort. I haven't had a chance yet to try this on another
system.. I assume it's a system problem moreso than a code error.)

Code that had been working is now also failing with that error.
Specifically on Left(..) and Mid(..) function calls.

--
email: my*****@canada.com // my_nick = mork
Nov 12 '05 #4
mork wrote:
When trying to use common functions like Left and/or Mid I get the
following error:
Run-time Error '5':
Invalid Procedure Call or Argument
I am using Access 2000 on Windows XP. I uninstalled Office 2000 and
reinstalled, but it did not resolve the issue.

What references to you have and what is their order?


Visual Basic for Applications
Microsfot Access 9.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft DAO 3.6 Object Library


Move DAO3.6 up and place below Object Library. See if that helps

Microsoft Outlook 9.0 Object Library

The app does some work with Outlook automation objects, etc. etc. It all
worked just dandy in the past. Cam back to it after a while to add some
functionality and this error started cropping up (I had not edited
references of any sort. I haven't had a chance yet to try this on another
system.. I assume it's a system problem moreso than a code error.)

Code that had been working is now also failing with that error.
Specifically on Left(..) and Mid(..) function calls.

--
email: my*****@canada.com // my_nick = mork


Nov 12 '05 #5
>> >> When trying to use common functions like Left and/or Mid I get the
>> following error:
>> Run-time Error '5':
>> Invalid Procedure Call or Argument
>>
>>
>> I am using Access 2000 on Windows XP. I uninstalled Office 2000 and
>> reinstalled, but it did not resolve the issue.
>>
>
> What references to you have and what is their order?
>


Visual Basic for Applications
Microsfot Access 9.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft DAO 3.6 Object Library


Move DAO3.6 up and place below Object Library. See if that helps


Woa. That did something! Sort of. So, now if I go into the module and
hit F5 to run it, it works. If I execute from within the app (this
particular case I'm testing is a menu item running a macro which executes
a function) it still errors out. I'm going to keep experimenting here
right now. I'll let you know if I make any progress.

email: my*****@canada.com // my_nick = mork
Nov 12 '05 #6
>>> >> When trying to use common functions like Left and/or Mid I get the
>> following error:
>> Run-time Error '5':
>> Invalid Procedure Call or Argument
>>
>>
>> I am using Access 2000 on Windows XP. I uninstalled Office 2000 and
>> reinstalled, but it did not resolve the issue.
>>
>
> What references to you have and what is their order?
>

Visual Basic for Applications
Microsfot Access 9.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft DAO 3.6 Object Library


Move DAO3.6 up and place below Object Library. See if that helps


Woa. That did something! Sort of. So, now if I go into the module and


Well, I was sorta wrong when I got excited there in my testing, what I did
realize is that the functions were working in a different mdb.

which got me to wondering.. what makes this one unique? Nothing as far
as I was concerned.. but it was somehow related to this particular file.
Did a good ol' "compact and repair" and the problem seems to have vanished.

Thank you very much for taking the time to respond and help me out.

P.S. U N Me, I think someone has taken to immitating you elsewhere in
this newsgroup.. posting innapropriate links and such. Just a heads up -
in general I'd say to ignore him/her and it'll go away.

--
email: my*****@canada.com // my_nick = mork
Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: john | last post by:
Ran Windows update tonight. Since then I get this error: HTTP 500.100 - Internal Server Error - ASP error Internet Information Services ...
6
by: Martin Lacoste | last post by:
Ok, before I headbutt the computer... don't know why when I add criteria in a query, I get an 'invalid procedure call'. I also don't know why after searching the help in access, the various access...
2
by: Zoury | last post by:
Hi there! I'm using a COM component from my C# application and I can't get it to work properly. I get a COMException (Invalid procedure call or argument) on this line : //***...
5
by: Matt | last post by:
I am receiving the following error from the simple script below. This works fine from a .NET form but when I access the dll from a Classic ASP page it fails. Microsoft VBScript runtime error...
5
by: Eric | last post by:
I run a program which read emails from a text file. There is some thing invalid in one or more text file. When program is busy doing parsing it shows that error and process stop. I dont know which...
0
by: AparnaKulkarni | last post by:
Hello, I m working with Templates in MS Word. I have established the user Template locations in Word with ".dot" file But after that I m getting error as "Invalid procedure call or argument...
6
by: HaggardSmurf | last post by:
Private Sub Downloader1_DownloadComplete(MaxBytes As Long, SaveFile As String) If MsgBox("Donwnload Finished. Would you like to install now?", vbInformation + vbYesNo, "Blue Cherry Media...
1
by: PurpleWitch | last post by:
Hi there I'm using an Access 2000 DB on Office 2000. The following Pivot Table worked fine 2 days ago, but no I'm getting the "Invalid Procedure Call or Argument" error when using Pivot Table...
1
by: sureshl | last post by:
Page opens like this.... phone:123243453 email:henria@real.com but aftr clicking that button I need to display like this.. phone:12324**** email:hen***@******
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.