473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Picture linking

I have a form that has a bound textbox displaying a picture path (in
another folder) for an image (e.g. C:\Documents and Settings\My
Documents\My Pictures\Symbol VRC 6940.jpg). I need this actual picture
to display on the screen and most importantly to display on a report.

Any clues on this?

Thanks!

Nov 10 '06 #1
3 1827
In the form, add an image control. Use the form's OnCurrent event to set the
image control's .Picture property to the file path. This will allow you to
display only one picture at a time though. You do pretty much the same thing
for the report except you'll set the image control's .Picture property when
you open the report or when the form changes.

Parasyke wrote:
>I have a form that has a bound textbox displaying a picture path (in
another folder) for an image (e.g. C:\Documents and Settings\My
Documents\My Pictures\Symbol VRC 6940.jpg). I need this actual picture
to display on the screen and most importantly to display on a report.

Any clues on this?

Thanks!
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 10 '06 #2
What if I change records on my form? Will the new displayed path in my
textbox bring up the respective image for that new file path?

kingston via AccessMonster.c om wrote:
In the form, add an image control. Use the form's OnCurrent event to set the
image control's .Picture property to the file path. This will allow you to
display only one picture at a time though. You do pretty much the same thing
for the report except you'll set the image control's .Picture property when
you open the report or when the form changes.

Parasyke wrote:
I have a form that has a bound textbox displaying a picture path (in
another folder) for an image (e.g. C:\Documents and Settings\My
Documents\My Pictures\Symbol VRC 6940.jpg). I need this actual picture
to display on the screen and most importantly to display on a report.

Any clues on this?

Thanks!

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1
Nov 13 '06 #3
Use the form's OnCurrent event to update the image control's .Picture
property:

Me.ImageCrtl.Pi cture = Me.PicturePath

where PicturePath is a text control with the new record's image file path.

Parasyke wrote:
>What if I change records on my form? Will the new displayed path in my
textbox bring up the respective image for that new file path?
>In the form, add an image control. Use the form's OnCurrent event to set the
image control's .Picture property to the file path. This will allow you to
[quoted text clipped - 14 lines]
>Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200611/1

Nov 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1922
by: ColinWard | last post by:
Hello again. I am trying to figure out how to link a picture to a record from code. I have figured out how to get the proper dialogue box to open but I still have to manually check off the Link checkbox. Is there a way to automate the checking of this box? I am not doing any of this through code because when I tried that, I could not make it work from code so I am simply using the default behaviours of the bound object frame. I hope...
0
2251
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database that is used to connect to other databases and generate reports. below is sample code of how the database does the linking i hope i give you enough info to help me but if not let me know and i will give more. Sub txtShipDataFileSub() Dim...
20
2404
by: Greg | last post by:
I'm fairly new to access (using 2002) and am setting up a DB for work. along with each record the user also needs to make a flow diagram (previously, these reports were composed in word and they used the autoshapes to create this diagram). I was wondering what the best way to incorporate this into the DB. I have read about how saving them as pictures in the DB bloats the size, which is unacceptable, but it needs to be easy to do (not...
6
9495
by: John Ortt | last post by:
Hi there everyone, I have a part info form which has a faded image of our company logo as a background. I want to replace the faded image with a bright red warning image on items which have run out of purchasing cover. I am nearly there, the only problem is that the code below only changes the image background for text and combo-box backgrounds, it doesn't apply it to the whole form.
1
1661
by: Petri | last post by:
Dear newsreaders, Access to aspx-pages can be prevented for example checking authentication cookie on page_onload part of code. But is there any way to prevent direct access to indivual files (eg. picture.jpg , video.wmv ) so that instead of showing file contents there would be a redirection to an authentication form ? The idea here is to prevent direct / hotlinking to my web site resources.
4
12855
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property, which becomes invalid when the user installs the database (ie: c:\devpath\ becomes c:\program files\mydbapp, but the .Picture property still points to c:\devpath\) The problem is that I don't *know* what installation path the user will select,...
6
8128
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a picture of themselves to their profile... I admit that I'm a newbie... but this is how I understand this:
0
1009
by: Joseph king | last post by:
well so far the problem for me is not the linking i have a kinda good code for that. here is a little snippet of the idea that i used on an old version that split the picture without input from the user. #this code defines that the edges have a place on the grid. def join_point(self, type): orect = self.orig_image.get_rect() if type == "north": return ((orec.width/2, 20))
6
10706
by: iheartvba | last post by:
Hi, I am trying to link a picture to an access report as follows: 1. The location of the Picure is stored as a hyperlink field in a table 2. The On Load Event of the report triggers the following code" Private Sub Report_Load() Set cnn = CurrentProject.Connection 'Table containing Logo Path rst.Open "tblClientDetails", cnn, adOpenDynamic, adLockBatchOptimistic With rst
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.