Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Edge Browser < Next Leap Year | Edge Browser 2 >
Back to Edge Browser    Comments List
Upload Images   @Reply   Bookmark    Link   Email  
No Image
Sandra Truax 
         
2 months ago
Okay, I have tried multiple times and multiple ways to do something with the ugly white Edge Browser Control if there is not an image listed. I've tried setting .visible to false. I've tried setting the background color with html. I've tried getting a solution from ChatGPT, and nothing works. Anyone have any ideas? I really hate seeing that ugly white Edge Browser control if there isn't a web link.
Sandra Truax OP  @Reply  
         
2 months ago

Kevin Robertson  @Reply  
          
2 months ago
I am assuming you have a field with the path to the image or URL. Just check the contents of that field.

    If IsNull(myImage) Or myImage = "" Then
        WB.Visible = False
    Else
        WB.Visible = True
    End If
Matt Hall  @Reply  
          
2 months ago
Another approach might be to use a "default" image for records with no image associated, like a silhouette or graphic that says No Image Available.
Sandra Truax OP  @Reply  
         
2 months ago
Kevin I tried that, but could never get it to work. Once I hit a link that was blank, it would hide, but I could never get it to show again.
Sandra Truax OP  @Reply  
         
2 months ago
Matt I tried that, but it would not let me use a .jpg because from what I could tell is those won't work with the Edge web control.
Kevin Robertson  @Reply  
          
2 months ago
Where did you put the code? On Current event?
Sandra Truax OP  @Reply  
         
2 months ago
Kevin I put it in the form's On Current Event. When I select a book in my cont. form, the image updates, until I hit one whre I don't have an image, then the Web Control hides, but when I got to an other book with an image, the control comes back but at most the image will just flash the goes away.
Sandra Truax OP  @Reply  
         
2 months ago
I finally found a solution that works, altought Richard would call it cheesy. I set the Web Control height to 0 if the field is null or blank, and set the height again for when it is not null. This is working every time, but I still can't figure out why the .visible won't. I've used that lots of time on fields and buttons, and it worked perfect. Just can't get it to work right for an Edge Web control.
Donald Blackwell  @Reply  
       
2 months ago
Sandra - another option, also cheesy that seems to work is changing the "displaywhen" property. Example:
EBC.DisplayWhen = 1

0 = Always
1 = Print Only
2 = Screen Only

As long as you're only using it on screen, switching to print only will hide it just like the visible property.
Sandra Truax OP  @Reply  
         
2 months ago
Donald I did not know this. I'll give that a try. Might be a lot easier than trying to figure out the height for when I want to see it.  Thanks.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Edge Browser.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/14/2025 7:16:14 PM. PLT: 1s