Hey All -
Ok first let me say I'm new to access so go easy...
I have some experience with VB6.
My issue - I have an VB6 program that uses data in an access table. When it's time to print the vb6 app opens an instance of access and the needed report (all is well up to this point).
The vb app writes a sql statement to a txt file. When the access report opens it reads the text file and gets the record source from the sql statement (I'm sure there is a better way to do that, but I'm a noob and thats what I came up with)
Anywhoo...So now my problem...I have images outside of access that I want to load into an image container on the report for each record that prints. I can load the image no problem if I hard code the path but thats not what I want to do...I want to get the value of the fldAutoNumber which cooresponds to the image name. (I would think it would be super easy to get the info. But I can't remember being this frustrated in a long time) I keep getting an error message that says it can't find the field "fldAutoNumber". So I don't know if it's the syntax or what... I have included all fields in the sql statement. If I type me and then the period the field name even shows up in the drop down list so I'm getting p$$$$$. If someone could give me some pointers on something like:
Me![Image1].Picture = "x:\dataloc\" & Me![fldAutoNumber].value & ".bmp"
I would be very greatful. I'm sure this is way to much info but I don't normally post on boards I usually spend countless hours reading them .
Ok first let me say I'm new to access so go easy...
I have some experience with VB6.
My issue - I have an VB6 program that uses data in an access table. When it's time to print the vb6 app opens an instance of access and the needed report (all is well up to this point).
The vb app writes a sql statement to a txt file. When the access report opens it reads the text file and gets the record source from the sql statement (I'm sure there is a better way to do that, but I'm a noob and thats what I came up with)
Anywhoo...So now my problem...I have images outside of access that I want to load into an image container on the report for each record that prints. I can load the image no problem if I hard code the path but thats not what I want to do...I want to get the value of the fldAutoNumber which cooresponds to the image name. (I would think it would be super easy to get the info. But I can't remember being this frustrated in a long time) I keep getting an error message that says it can't find the field "fldAutoNumber". So I don't know if it's the syntax or what... I have included all fields in the sql statement. If I type me and then the period the field name even shows up in the drop down list so I'm getting p$$$$$. If someone could give me some pointers on something like:
Me![Image1].Picture = "x:\dataloc\" & Me![fldAutoNumber].value & ".bmp"
I would be very greatful. I'm sure this is way to much info but I don't normally post on boards I usually spend countless hours reading them .