I’m trying to create hyperlinks into a database I’m creating of plants and herbs (odb). But it doesn’t work.
Here is a minimal setup.
First the table. Two fields: an ID for key (AutoValue = Yes) and a Text[VARCHAR] of say 100 characters to hold the location.
Next the form. Form properties set to the created table. Two controls on the form: Image Control pointing to the text field in the table and a Navigation Bar to move through the table items.
To use, open the form. With no records in the table you can add a new link by a right mouse click on the image control, then left click on the displayed
Insert image from... and select the location of the wanted image. Go to
Next Record and the previous link is inserted into the table.
I tried Ratslinger’s answer. It works very well. Here a example with flags:
@charlie.it thanks for the sample. Works fine if .png samples and saved paths match. Even without that, it allows for new entries to be made.
Today I followed another way: link rather than embed the images, so that the odb file can remain of small size.
- in edit view add a text box in your form and
- convert it (replace with) to a image control
- in normal view double click on the new box and select the image, which will not embedded, but linked.
If you use a mysql database you can set the field as varchar (at least 150 char) and insert the location, such as http://localhost/your-path/yourfile.jpg