473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Deleted Image displayed when in Runtime but not Full Access

92
How Do,

I am using custom message boxes to make them much more aesthetically pleasing. On this form, there are 4 images for "Question", "Information", "Critical" and "Exclamation".

I found the custom message boxes at http://blog.nkadesign.com/2008/ms-ac...x-replacement/ and edited it to fit my needs - Background colours, borders, etc as well as the Images displayed.

I changed the images to completely different ones, deleting the originals and embedding the new on the form. For easy compatibility with the coding they have the same names as the original images.


When I open the message boxes in a full version of Access, they display the new images but in the runtime, the old, deleted versions are displayed.


I don't have the old images stored on my PC anywhere and the new embedded images are the only images on the form.



Any Ideas?
Jun 17 '10 #1
11 2153
jimatqsi
1,271 Expert 1GB
Perhaps this link will help. It seems to be related.
http://bytes.com/topic/access/answer...dded-jpg-image

Jim
Jun 17 '10 #2
NDayave
92
No offence, but that link is totally unrelated.
I am using embedded bitmaps, not linked Jpegs.

My problem is that one image is displayed when I open the form in a full version of access, whereas when opened in the Access Runtime, an older image that has been deleted is displayed.


This is persistent. I can open the same file in runtime and full version and see completely different images over and over again.


I'll state it again, the problem is that an embedded image displays a deleted version of itself when opened in Runtime.
Jun 17 '10 #3
NeoPa
32,556 Expert Mod 16PB
It may help to know how exactly you are using these new images. What type of controls are you using? How are the images referred to? Which properties utilised? etc. Is your custom message box a form set up to work that way?

Remember, from the other side of a forum we need more details than if we had the database in front of us, particularly for questions which are clearly beyond the level of beginner simplicity.
Jun 17 '10 #4
NDayave
92
I feel that I should make it clear that I am not changing any of the Images on the form. I am not deleting or inserting at any time. This concerns static, embedded images that should not be changing.


The custom Message Box is a form that is formatted on it's Load to meet the requirements specified in the code.


The 4 images are called "imgExclamation", "imgQuestion" etc. and are embedded bitmaps that are displayed regardless of database location or software installed on the computer. They are stored in the Form.


All 4 are on the form at all times and are made visible based on the criteria passed.


Everything works as it should when using the full version of access, the visible properties are correctly set and the relevant image displayed.


When using the runtime, everything runs as it should. The right "imgxxxxxxx" is displayed. It is just an older version of the image that I replaced for a better image with the same name to save changing the VBA.



If you still have the version of the database I sent you NeoPa (In this thread) you can have a look at the difference when running in and outside of the Runtime.
Jun 17 '10 #5
NeoPa
32,556 Expert Mod 16PB
I think I have it at home still (not here at work). What's the name of the form I should be looking at?
Jun 17 '10 #6
NDayave
92
It is called "FormDialog" and utilises the modules "API_GetTextMetrics" and "Dialog".

In the version you have it should open whenever the dialog.box command is used, so if you try to close the Load/Save Mailing List form, Export the selected Mailing List etc.

If it doesn't open or seem to be functioning in an apparently normal fashion, I'll upload a different version.
Jun 17 '10 #7
NeoPa
32,556 Expert Mod 16PB
What are you referring to when you say the runtime?

I've created a 2003 MDE which seems to work fine. I thought only 2007 had an associated runtime. What am I missing here?
Jun 17 '10 #8
jimatqsi
1,271 Expert 1GB
Neopa, what he is referring to is that Microsoft offers a free runtime version of Access so developers can create Access solutions and sell/distribute them to people who have not actually bought Office. Installing the runtime is completely free, but you lose some options, like debug and development mode. You can send your mde copy to somebody who has not bought Office if they installed the runtime version of Access. See http://office.microsoft.com/en-us/ac...001120886.aspx for more info.

Jim
Jun 18 '10 #9
NeoPa
32,556 Expert Mod 16PB
Thanks Jim. I wish I'd known about this two weeks ago. I ended up doing something at work in Excel which I'd rather have done in Access. We live & learn.

I guess installing both on the same PC is not a good idea? I have the full package installed on all my PCs.
Jun 18 '10 #10
NDayave
92
There is apparently a command line switch to force operation in the runtime - Adding /runtime to the shortcut IIRC - but I have never been able to get it to work.

As for installing both on one PC, it is possible. You just need to specify which version you open files in. (Right Click -> Open With)

It can also be uninstalled separately as well.


If you can't use the runtime, here is the difference. Top is in Full Access (Displaying correct image) and bottom in the Runtime (Displaying the old Image I deleted when making the form).

It is the same picture displayed using the same code on the same form. I have tried replacing the images but the problem persists.
Jun 18 '10 #11
NeoPa
32,556 Expert Mod 16PB
Very strange really. These are both images you've added into the database yourself at one time or another it seems. I was originally understanding the issue as your replacing an inbuilt image of the buttons (IE the ones associated with vbExclamation, vbcritical etc).

I can't do any checking from here (work again), but as a shot in the dark, I'd suggest doing a Compact and Repair before whatever else you do to prepare it for the runtime. It may well prove a dead-end, but probably worth a try if you haven't already.
Jun 18 '10 #12

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

Similar topics

2
by: Trevor Hughes | last post by:
Hello All Our organisation has recently upgraded its operating system to Windows 2000. Prior to this I was running Access 2000 databases on NT machines using the Access 2000 Runtime with no...
1
by: bjbounce2002 | last post by:
Hello, I am using forms with command buttons to close form or run action queries. The error messages such as "Null value in required field" or "duplicate value in primary key" are suppressed....
2
by: Mark Kamoski | last post by:
How can one change an image url at runtime? (Note, the image exists in a user control.) This is the image tag on the ascx... <asp:image id="TopBanner" runat="server"></asp:image> ....but...
2
by: ticars | last post by:
I'm getting a weird error when trying to access a user control from within a base page during runtime. Here's what I have: I have a master page with a user control on it. I then have a few...
0
by: umlv | last post by:
Hi, I understand that the runtime will be free with access 2007. I wonder about the following scenario: A user will have the full version of access 2003 installed (or an earlier version). A...
0
by: PROGRAMMINGMAESTO | last post by:
How to Fetch and Retrieve image in ASP using MS Access. -------------------------------------------------------------------------------- Hello Friends, Can Anybody guide about how should i...
1
by: veer165 | last post by:
I have a list of items... And i want a little thumbnail of each item to be displayed when the mouse is over a particular text ... Say if i have a list of fruits i want an apple thumbnail on the...
7
by: kadarkarai | last post by:
I am developing photo gallery in Macromedia Flash 8 and XML to retrive the Image. Image Size is all in different size. my question is How to Change image size at runtime in flash? so that image...
3
by: wbabbit | last post by:
I am getting an "Access Denied" error when trying to access an executable in my web directory. I have tried cmd.exe, ftp.exe, even notepad.exe. I have given everyone, including the anonymous user,...
1
by: Ryan Ritten | last post by:
Hey all, At the company I work for our team of ASP.NET developers have requested that the aspnet_wp account (the account that IIS runs under) needs to have full read access to the entire server...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
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,...
0
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...

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.