Posted on 1999-11-07
Medium Priority
Last Modified: 2011-04-14
I am drawing bars in picture boxex representing data from the database. I have pic2 as container, and pic(1)... are the bars using load picture(i) loop where i is the number of items. it is working ok. when i delete one item, it is deleted from the tabble but the bar is still showing. i tried pic2.cls, .refresh no use, i need a way to refresh these bars and only show what is in the dbase. the worst scinario when the table is empty, i can not refresh till i quit the programme and reload it which is silly. so any one can help if i was understood!!

Question by:sml41
LVL 32

Accepted Solution

Erick37 earned 150 total points
ID: 2189752
Use Unload Picture1(i) to remove the "bar" when you are done with it.

Expert Comment

ID: 2189793
you can also switch the pictures BKG color. to hide- make th color as the container picture color. to Show - to some other color.
LVL 32

Expert Comment

ID: 2189874
Or set the .Visible property False.
LVL 96

Expert Comment

by:Bob Learned
ID: 2191103
Set pic2.Picture = LoadPicture("")

Author Comment

ID: 2205430
a solution will work, but i have plenty of work to do there


Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question