473,785 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display an image if a field has data or not

Thanks for your help and reading my note!

I would like to display an image that would let the user know that
more information was stored in a comments field. If the comments
field is empty I don't want to display the image. If/when I get this
working then I will let the user click on the image to open up another
form of the comments field.

Let me know if you have any suggestion please.

N. Graves
Nov 13 '05 #1
2 2212
Pat
If this is on a simple form, you can do something like:

imgName.Visible = Is Not Null([BoundCommentsFi eld])
Then, you need an onClick event to display the comments however you like -
unhide a hidden field or open another form.

Unfortunately, I don't know of a way to do this on a continuous form. It
seems that the image isn't associated with the line item of the detail.
It's all or nothing, based on the first line item. Instead, I've had to use
a checkbox noting the presence of more info and a button to pop a form with
that info.

If there's a solution to the line item, please share. I'd be interested.
Thanks
Pat
"N. Graves" <ng*****@REMOVE yahoo.com> wrote in message
news:8c******** *************** *********@4ax.c om...
Thanks for your help and reading my note!

I would like to display an image that would let the user know that
more information was stored in a comments field. If the comments
field is empty I don't want to display the image. If/when I get this
working then I will let the user click on the image to open up another
form of the comments field.

Let me know if you have any suggestion please.

N. Graves

Nov 13 '05 #2
Thanks for the input!

Yea that is pretty much what I have figured out.

Is there any other way to have any visual notification for the user to
click on it?

N. Graves

On Sat, 07 Aug 2004 05:00:15 GMT, "Pat" <no*****@ihates pam.bum> wrote:
If this is on a simple form, you can do something like:

imgName.Visibl e = Is Not Null([BoundCommentsFi eld])
Then, you need an onClick event to display the comments however you like -
unhide a hidden field or open another form.

Unfortunatel y, I don't know of a way to do this on a continuous form. It
seems that the image isn't associated with the line item of the detail.
It's all or nothing, based on the first line item. Instead, I've had to use
a checkbox noting the presence of more info and a button to pop a form with
that info.

If there's a solution to the line item, please share. I'd be interested.
Thanks
Pat
"N. Graves" <ng*****@REMOVE yahoo.com> wrote in message
news:8c******* *************** **********@4ax. com...
Thanks for your help and reading my note!

I would like to display an image that would let the user know that
more information was stored in a comments field. If the comments
field is empty I don't want to display the image. If/when I get this
working then I will let the user click on the image to open up another
form of the comments field.

Let me know if you have any suggestion please.

N. Graves


Nov 13 '05 #3

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

Similar topics

5
2393
by: Kevin | last post by:
Hi all, Assuming I have stored the binary data of an image file in a blob field of a table, how can I display it as an image in a web page? I found some instructions on the web, such as header('application/octet-stream'); echo $imgdata; I don't know why I always get this warning.
1
4412
by: John Scott | last post by:
I am storing an image in an SQL database and have one field as an image datatype. I am also using a webservice to transport data. I want to be able to resize the image and pass back a thumbnail image in a byte of what is in the database. I also want to be able to display this image in an <asp:image></asp:image> control. Is there any way to do this? Most of the examples that I've seen have used
1
2945
by: Eric Keung | last post by:
Hi all, my case is I want to get an image from access database and I just know it's "OLE object" field type at access I also don't know how to insert it into access here is my code and it just can display a invalid image try dim strConn as string strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & server.mappath
2
2473
by: Wayne Wengert | last post by:
I am trying to build an ASP.NET application which includes the capability to allow users to save pictures to a SQL Server 2000 database table and then later to display selected photos (usually JPG files). I found some sample code via a google search which showed how to upload a jpg file using ASP (HtmlInputFile) and save it in an Access database and I've tried to adapt that to work with ASP.NET/SQL Server and I am able to get the file data...
18
6523
by: Auto | last post by:
Hello, I would like to know how do display an image into a Gridview (ASP.NET 2.0) taken directly from a DataBase, NOT using an URL, like described in this article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/GridViewEx06.asp I have NO URL, i have the binary image inside the DB, like the field "Photo" in the table "Employees" of the "NWIND.MDB" DataBase.
1
2335
by: Objectifnet | last post by:
What I really want to do is to be able to link two pages together using an ID, The table involved displays an image stored on the File Server that has the image details stored in the Database called. THE Database used is MySQL "Support" on a Table Called "profiles": The problem is how do I get this piece of codes to link to a details page called "PATRONS_DETAILS.PHP" and display information about one particular database detail. With ID...
4
2070
by: seth_hickel | last post by:
With other solutions I would get a recordset, read each record and display data by formating my html as I wanted to display values of each record. I am trying to display data in a three column three row table with paging. How does this translate to ASP.NET - or - what ASP.NET tools do I use to accomplish this and how. Thank you.
3
5942
by: Ian | last post by:
I have a form with a sub form, on the continues sub for I want to display some data along with a picture, on the On Current event I have the code: .Picture = Nz() is the name of the picture control, is the name of the text field that holds the path to the jpg. What I want is each record in the sub form to show the associated
3
14350
by: Michael R | last post by:
Hello all. I created an Image field in a table. I set it to be an OLE Object data type. Later I viewed the table in datasheet view and insereted an image to each row of the Image field. Then I created a form based on that table, with a Bound Object Frame control to display . However, when I view the form it only displays a white box with the image file name. Why is it so. How can I display it properly, using the OLE Object data type? ...
0
9645
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
10341
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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...
0
9954
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...
0
8979
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
7502
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
5383
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
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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.