Solved Image Object in Continuous Forms

TipsyWolf

Member
Local time
Today, 06:47
Joined
Mar 20, 2024
Messages
249
hey guys,
it didn't take long until i face with another problem for me lol

i have a Continuous Forms and Attachment as field type, but now im in a process of switching to storing pic outside of db.
1719343811830.png

so im gonna need to remove attachments soon and .... my Image Object type which does its job perfectly - can't be more happier, but i dont know who to link Image Object type (which it gets image from link stored in "picbefore1filepath" field

i set its Control Source in Image Object as
Code:
="[picbefore1filepath]= " & [RiskID]
="[RiskID]= " & [picbefore1filepath]
surly both options didn't work for me.

please help
 
Last edited:
1719344257249.png


as u can see
"RiskID" is always = "picbefore1filepath" as they are basically in one table
 
In the control source of the image, simply select the filepath field from the dropdown.
 
In the control source of the image, simply select the filepath field from the dropdown.
i had it. it shows like there is no pictures

1719345502790.png


Tmain Tmain

RiskIDRiskCoderiskTitleisActiveRiskdueDateRiskDatelocationIDlocationlocationPriciesrisktyperiskcolorreporterpicafterpicbeforepicbefore1filepathpicbefore1picnamepicbefore2filepathpicbefore2picnamepicbefore3filepathpicbefore3picnamepicafter1filepathpicafter1picnamepicafter2filepathpicafter2picnamepicafter3filepathpicafter3picname
460​
15​
XXX
No​
20.06.2024​
0​
XXXXXXXXXXXX02C:\Images\RiskID_460_before_1.jpgRiskID_460_before_1.jpgC:\Images\RiskID_460_after_1.jpgRiskID_460_after_1.jpg
 

Attachments

  • 1719345166021.png
    1719345166021.png
    3.4 KB · Views: 40
What are the values stored in that field?
 
To be clear you are using an "Image Control" not another type of object frame?
The control source is set in the property window to "picBefore1FilePath"?
Image.png
 
To be clear you are using an "Image Control" not another type of object frame?
its "Image"
1719346708961.png

here its property sheet.

1719346684611.png



The control source is set in the property window to "picBefore1FilePath"?
yeah. "picBefore1FilePath" filed has a link to certain picture.
1719347117972.png


1719346845171.png


it works in form, but it doesn't in Continuous Form. .... hm...
 

Attachments

  • 1719347080656.png
    1719347080656.png
    10.9 KB · Views: 44
it works in form, but it doesn't in Continuous Form. .... hm...
If it works in single form view and not in continuous form view.
I would delete the image control and re-add it. Maybe it is a formatting issue on the control. Looks like you have it correct.
 
guys , figured it out by myself !!! its a win for me !
the reason why it didn't show any pic is ... i didn't include new added fields into Records Source of this Continuous Forms.
once i added - it shown the picture !

1719382035998.png


im glad im learning something at least. not the way i should , but anyway.
thank you guys !
 
Don't feel so bad.A user on another forum was trying to requery and set focus to a form.
Nothing wrong with that you might say?

Problem was, the form was not open. :)
 

Users who are viewing this thread

Back
Top Bottom