473,657 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying Image in Report, but if textbox is empty repeats last image!

1 New Member
Hello and thanks in advance for any help.

I have a report that i'd like to display an Image for each record. But not all records have an image. The problem I have is that the last image is then repeated in the next record.

I would like to know how to have any empty field display a default image.

Code I have in report

Private Sub Detail_Format(C ancel As Integer, FormatCount As Integer)

Me.Image21.Prop erties("Picture ") = Me.PhotoLink

End Sub

Photolink is a textfield and Image21 is an Image.

Thank you.
Sep 5 '10 #1
1 1317
marcellus7
33 New Member
Expand|Select|Wrap|Line Numbers
  1. If Me.PhotoLink = "" Then
  2. Me.Image21.Properties("Picture") = Nothing
  3. Else
  4. Me.Image21.Properties("Picture") = Me.PhotoLink
  5. End If
  6.  
Sep 14 '10 #2

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

Similar topics

1
8340
by: Phil Stanton | last post by:
I am trying to create a text box in Word the same height as one on a report and then fill it with text. I can "read" the position of the text box from the report OK and create a text box in Word with the correct position, but it's size is identical to the size of the "ungrown" text box on the report. I need to create the text box in Word the same size as the grown text box on the report. So, in Design view the report has a text box...
3
1548
by: Sandeep Singh Sekhon | last post by:
I am developing an application in ASP.NET 1.1. on one page I allow the user to upload and delete the files to the server. When I delete the file, I physically delete the file from the location. Then I again prompt the user to load a new file but I save the file with the same name the earlier image file had been saved. The problem is that when I again upload the page through Response.Redirect after uploading, it is showing the same image it...
0
1083
by: shihab | last post by:
Hai all, How to keep a multiline + vertical scrollbar textbox on the LAST line in Asp.net with c# ,when refreshing page? thanx, sihab
1
3056
by: brsawvel | last post by:
Hello, I have a form with text/combo boxes that draws from a query and sends records to a report. The query has the following code in the criteria block of some of the columns: !! This code tells the query to select only those records that match what was entered or selected in the pertinent text/combo box in the "report" form. So the SQL appears as follows: SELECT tbl.fld1, tbl1.fld2, tbl1.fld3,...
2
3069
by: Amir Michail | last post by:
Hi, The following gradient method involves scaling a gradient image. How would one put a logo on top of such a scaled gradient image without also scaling the logo image? http://www.alistapart.com/articles/supereasyblendys http://www.alistapart.com/d/supereasyblendys/examples/eg7.html Amir
0
1287
by: MATTXtwo | last post by:
I got some probs here.. I got this project upload image i have already upload that image... and i need to make the image path pass the value to crystal report and display it how to do that? how to create parameter for picturebox source file on crystal report
1
3590
by: dipalipatel | last post by:
Hi, I need help to show Image on MS Access form using image control. i am using Memo field to store my image bytes, Data E.g. order# Number 1001 Sign Memo 45 63 46 61*46 61 46 58*46 58 46 55*46 55 45 52*45 52 45 50*45 50 44 47*44 47 43 44*43 44 43 49*43 49 44 54*44 54 44 59*44 59 45 64*45 64 46 70*46 70 47 74*47 74 49 83*49 83 50 81*50 81 51 77*51 77 51
0
10752
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
1
1632
by: jlcastrejon | last post by:
Hi everybody, Could someone tell me how to make a report using just the last record of my access 2007 database? Tks. Jose
0
8411
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
8323
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
8739
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
8513
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
7351
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.