[AccessD] DIR Command Failing-but not everywhere...

Heenan, Lambert Lambert.Heenan at AIG.com
Mon Oct 3 11:44:47 CDT 2005


Will I suppose you could trap error 52, which seems to only happen with
Dir() when you access a drive with no disk in it. If the error happens it's
a safe bet to interpret it as "Drive Empty" and issue an appropriate message
to the user.

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins
Sent: Monday, October 03, 2005 12:14 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] DIR Command Failing-but not everywhere...


Lambert, do you have a solution? 

Susan H. 

Ah Hah! That's the one case (?) where Dir() does not just return an empty
string. Nice catch.

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list