Solved

MACRO - Import Text File - continue even if import file is empty

Posted on 2006-06-12
2
268 Views
Last Modified: 2012-06-27
When building a macro with several steps, all using the Transfer text function, if one of the steps finds the import file empty I would like the macro to either continue automatically or warn the user and allow continue - is that possible?
0
Comment
Question by:COBOLforever
  • 2
2 Comments
 
LVL 34

Accepted Solution

by:
jefftwilley earned 125 total points
ID: 16887729
Place a condition inside your macro

FileLen("FileName") > 0   run Macro
J
0
 
LVL 34

Expert Comment

by:jefftwilley
ID: 16887758
If coding, it's easier

'    If FileLen("FilePathAndName") > 0 Then
'        Run your macro
'    End If
J
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HasData 9 36
Unrecognized Database Format 8 91
ms access 2013, running .mdb 2 30
Improving performance of a query that uses a subquery 9 30
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

911 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

20 Experts available now in Live!

Get 1:1 Help Now