473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is there a way to let an OLE Picture field show a link to for example P:\Pictures\Tes

5
In my table I have Picture (OLE) and Link_String (Text)

On my Form I have the OLE field and the text field.



In the text field I would like to put in a reference to a file on my computer (example: P:\Pictures\Test.jpg) and the picture OLE field should then show the linked to picture.



Is there a way to code this?



Greetings,

ACF
Jun 28 '07 #1
2 1305
JConsulting
603 Expert 512MB
In my table I have Picture (OLE) and Link_String (Text)

On my Form I have the OLE field and the text field.



In the text field I would like to put in a reference to a file on my computer (example: P:\Pictures\Test.jpg) and the picture OLE field should then show the linked to picture.



Is there a way to code this?



Greetings,

ACF
You don't need to code anything. Just make the textbox bound to the table's field where the picture path is.
J
Jul 4 '07 #2
Lysander
344 Expert 100+
In my table I have Picture (OLE) and Link_String (Text)

On my Form I have the OLE field and the text field.



In the text field I would like to put in a reference to a file on my computer (example: P:\Pictures\Test.jpg) and the picture OLE field should then show the linked to picture.



Is there a way to code this?

If you are storing the picture itself in your database, you don't have to do anything, just bind the OLE control to the picture.

If you are storing the pictures name, not the picture itself, then in the on_current event of the form change the picture property of the control

For example the control is called cardpic and the fieldname in my recordset is PictureName

Expand|Select|Wrap|Line Numbers
  1. cardpic.picture = "G:\Desktop\magic\pictures\" & PictureName & ".jpg"
  2.  
Jul 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: dvorett | last post by:
I know this topic has been discussed a lot but after going through the old posts, I'm still having trouble with the code. I have a photo name field which refers to the location of the photo on the...
0
by: remcoploeg | last post by:
I use the following code for getting a picture from oracle: OraCon.Open(); // define the sql to perform the database insert string sqlStmt = "select foto from ov_portal_foto"; // Establish...
0
by: Gambia Guy | last post by:
Trying to add a picture field to one of the tabs in MS Active Directory Users and Computers snap-in. Has anyone seen this done? Is it possible? I have found a Technet reference that adds a salary...
0
by: shapper | last post by:
Hello, I added, at runtime, a button field of type link to a gridview. Now I need url of that button, when pressed, to be as follows: "news.aspx?id=" & channel "Channel" is the first...
1
by: robert.dondo | last post by:
I have database that has one table with 2 columns ie Name and Link. I have a page that links to the dynamic page using a query string. The results of the query are displayed on a datagrid. ...
19
by: muddasirmunir | last post by:
can any body tell me how to round numbers in in exactly two decimal places i had use a function round(text1.text,2) but whenever there is zere(0) at the end it does not show it for eg for round...
5
by: kimiraikkonen | last post by:
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in...
1
by: sareeka | last post by:
mean if we select mango pic: it show in selectedpicbox:, if we select orangepic: it show in selectedpicbox , if we select apple pic: it show in selectedpicbox
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.