[AccessD] CurrentProject.Path syntax?

Jim Lawrence accessd at shaw.ca
Wed Mar 17 15:01:34 CDT 2010


Hi William:

So what does CurrentPath resolve to?... "v:\JISWORKING\TMS\"
You may have to pass the syntax through a variable like:

strCurrentPath =  trim(CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp")
MetaDraw0.LoadPicture strCurrentPath

This usually solves the problem. Also noted is you have curved brackets
around the name in the first version which may indicate a return value from
the MetaDraw0 class which may confuse the simple thing...?

HTH
Jim



-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman
Sent: Wednesday, March 17, 2010 8:31 AM
To: Access Developers discussion and problem solving
Subject: [AccessD] CurrentProject.Path syntax?

...the following two lines point to the same file ...but only line two works

...what is my befuddled mind missing this time?

'MetaDraw0.LoadPicture (CurrentProject.Path & "MBCC_HallC_Spring_001a.mdp"),

0, 0
MetaDraw0.LoadPicture "v:\JISWORKING\TMS\MBCC_HallC_Spring_001a.mdp", 0, 0

William 


-- 
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