Solved

any ideas on this

Posted on 2002-04-30
6
207 Views
Last Modified: 2010-05-02
I've just upgraded from 98 to 2k professional,

this piece of code below worked fine in part of a module but since i upgrades it keeps giving me an error

this is the code :-

   
    With Application.filesearch
     .filename = "*.csv"
     .LookIn = "C:\files"
     .SearchSubFolders = False
     .Execute
     fc = .FoundFiles.Count


this is the error :-

run-time error 5

Invalid procedure call or aguement & that happens on .filename="*.csv"

any idea's on that one.

lost me.

cheers

Andy
0
Comment
Question by:andysalih
6 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
I guess that the code is a Macro inside of an Office module (word, excel etc).
Now, did you upgrade Office or Windows to 2k? I guess that you mean Windows, but anyway, on my W2k workstation that piece of code works fine...

Listening & Learning
0
 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
Works fine for me, Win2KSP2 and Office 2K SP2
0
 
LVL 3

Author Comment

by:andysalih
Comment Utility
okey guys, thanks for that, but

I'm currently using access 97, Reason being is that all our clients are on access 97 and will not upgrade, So ive upgraded 98 to 2000 professional. The module written is an actual function inside of access called my a sub function, anyway i wont get into that,

Im just wondering if its something to do with win professional.

hmmmm

dunno

I'll leave this open for a while in case anybody else has any idea's

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 3

Author Comment

by:andysalih
Comment Utility
im still stuck

whats happening is that i get this error :-

run-time error 5

Invalid procedure call or aguement & that happens on .filename="*.csv"



when it finds a file with that extension. WHY ??????

ive tried it on all the other computer which are running win 98 and NT4 but it will not work with 2000 professional.

what can it be

i've even tried it with a .txt extension and if it finds a file it still does the same.
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
Comment Utility
You have 14 open questions today, all of which need your attention.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101, Netminder or Mindphaser will return to finalize these if they are still open in 7 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20162276.html
http://www.experts-exchange.com/questions/Q.20173360.html
http://www.experts-exchange.com/questions/Q.20188764.html
http://www.experts-exchange.com/questions/Q.20192160.html
http://www.experts-exchange.com/questions/Q.20194450.html
http://www.experts-exchange.com/questions/Q.20227206.html
http://www.experts-exchange.com/questions/Q.20250618.html
http://www.experts-exchange.com/questions/Q.20281960.html
http://www.experts-exchange.com/questions/Q.20281976.html
http://www.experts-exchange.com/questions/Q.20287352.html
http://www.experts-exchange.com/questions/Q.20289484.html
http://www.experts-exchange.com/questions/Q.20289520.html
http://www.experts-exchange.com/questions/Q.20295341.html
http://www.experts-exchange.com/questions/Q.20301680.html



*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
POINTS FOR EXPERTS awaiting comments are listed in the link below
http://www.experts-exchange.com/commspt/Q.20277028.html
 
Moderators will finalize this question if in @7 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
 
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
0
 
LVL 1

Expert Comment

by:Moondancer
Comment Utility
50 points have been refunded to you.  Did anyone here help you whom you intended to give points?
Thanks,
Moondancer - EE Moderator
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now