Dlookup with filepath as criteria (2 Viewers)

Gasman

Enthusiastic Amateur
Local time
Today, 22:49
Joined
Sep 21, 2011
Messages
14,317
That is different result to mine

I tried
C:\Users\Paul\Documents\Bibbys.mdb
z:\downloads\CascadingComboInSubform2k.mdb
z:\downloads\Heartleys Wk 21 Summary 2.pdf

The first two worked fine and Z is a network drive.
Only the last returned Null :confused:
 

nhorton79

Registered User.
Local time
Tomorrow, 09:49
Joined
Aug 17, 2015
Messages
147
Hey Gasman.

That is weird. Especially with the spaces on yours. I have had no problems with spaces at all.





Sent from my iPhone using Tapatalk
 

isladogs

MVP / VIP
Local time
Today, 22:49
Joined
Jan 14, 2017
Messages
18,239
Its a similar issue in URLs where %20 is used in place of a space
Try replacing any spaces with an underscore in the strCriteria line then run the DLookup
 

Gasman

Enthusiastic Amateur
Local time
Today, 22:49
Joined
Sep 21, 2011
Messages
14,317
Not to worry, you have got your end sorted, though I admit I am curious as to what the differences might be?


Hey Gasman.

That is weird. Especially with the spaces on yours. I have had no problems with spaces at all.





Sent from my iPhone using Tapatalk
 

nhorton79

Registered User.
Local time
Tomorrow, 09:49
Joined
Aug 17, 2015
Messages
147
Its a similar issue in URLs where %20 is used in place of a space
Try replacing any spaces with an underscore in the strCriteria line then run the DLookup



Hi Colin,
I’ve had no issues with the spaces, just Gasman.

My issue was with the backslashes and found that if I replaced with a double slash it worked, kind of like in c# (“\\” or @“\”)


Sent from my iPhone using Tapatalk
 

Users who are viewing this thread

Top Bottom