Code Not working

Leesha
BronzeLounger
Posts: 1488
Joined: 05 Feb 2010, 22:25

Code Not working

Post by Leesha »

Hi,
I'm attaching a DB that has a form that prints labels. The code for the "Print Labels" cmd button is working fine. The code for "Print Generic Labels runs OK to the point of connecting to the photos. There are no errors, however the photo doesn't show. I've checked to be sure the path is correct which it is. I am not sure if the issue is module basFileOpen since all I did was adjust the original code that was given to me. I'm not sure what I am missing.
Thanks!
Leesha
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78544
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Code Not working

Post by HansV »

The report rptAHEBGeneric gets the pictures from strFolder2 = "Z:\Graphic Files\QuickPrint".
I think you need to add a backslash at the end of the path, just like you have for strFolder.
So declare strFolder2 as

Public Const strFolder2 = "Z:\Graphic Files\QuickPrint\"
Best wishes,
Hans

Leesha
BronzeLounger
Posts: 1488
Joined: 05 Feb 2010, 22:25

Re: Code Not working

Post by Leesha »

Hi Han's,
That was it!!
Thanks,
Leesha