473,503 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need code for message that does not require a response

6 New Member
I need to show a message in my Access app that will be displayed while a form is open. This message will instruct the user what process he/she will need to use upon closing the form. I need this message to go away after the form is closed. I was given an example in a manual I had to use the "Infomessage" command. Could not get it to work ??
Thanks, Bill Stillwell
Nov 9 '09 #1
7 1776
MMcCarthy
14,534 Recognized Expert Moderator MVP
Is there some reason you can't put the message in a label on the form?
Nov 9 '09 #2
Bill Stillwell
6 New Member
In detail, I am changing the background color of the form while decision is made what to do with it. (using the On Dirty property) The form is actually used for multiple things, and I do not want to change the form itself with a label. When the user makes the change, (change records, cancel input to database, etc.) the background will change back to the default color, and the message will go away.
Nov 9 '09 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Infomessage is a method of adodb connection. It is used to trigger error messages for things like connection problems. I'm not sure how you would use it without establishing an adodb connection.

Something else you might like to look at is the notify tray icon messages. Have a look at this tutorial and see if it's something you could adapt.

http://msdn.microsoft.com/en-us/library/aa930660.aspx

This is a shell structure that can be accessed from the Shell32.dll library.

If you do decide to go in this direction let me know and I'll direct some of our shell guru's in your direction. I don't use it much myself.

Mary
Nov 9 '09 #4
Bill Stillwell
6 New Member
Mary (msquared),
Thanks for the input. Being a "rookie" in VBA, I need more hand-holding that you are probably used to.
The link you sent me about the notify tray icon message might work ....... I am trying to see what I can learn about its use. As I mentioned in the explanation of the original post, I just need a message that will be displayed while the form I have displayed has a different background color that the default color. As soon as the user does an action (select another record, cancel the entry, etc.), the background color will change back to the default color and the message will go away. The solution is probably not as 'simple' as I was hoping for. :-(
Bill Stillwell
Nov 10 '09 #5
MMcCarthy
14,534 Recognized Expert Moderator MVP
The simple way of doing it and the way I would handle it is to have a label become visible for the duration and then go invisible.

I don't think the notify tray icon will be easy to accomplish but I'll point someone in this direction who may be able to help if you want to try it.

Mary
Nov 10 '09 #6
Bill Stillwell
6 New Member
Mary,
Believe it or not, I just fixed it (before reading your post) by coding it a little different than your suggestion, but it worked. I put my message on the form in "white" so it could not be seen. As soon as the back color of the form changed colors (indicating the data on the form was being changed), the white message was visible on the form with the new color. As soon as the option to accept or cancel the change was selected, the form gave a message indicating the data was either changed or the change was cancelled. The form turned white when the final message was presented, which made the message invisable again.
Thanks again for your help,
Bill Stillwell
Nov 10 '09 #7
MMcCarthy
14,534 Recognized Expert Moderator MVP
Glad you got it sorted. :)
Nov 10 '09 #8

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

Similar topics

12
2372
by: jason | last post by:
Access 2000: I have a customer-inventory table I need to loop through and compile a list of all the inventory items the customer is tracking. The problem I am finding is that a simple loop...
2
1917
by: Bobby | last post by:
Hello everyone I have a question. The school I am working for is in the beginning process of having a webpage that will direct students to download there homework and be able to view there info...
1
3890
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
9
2912
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
1
2129
by: | last post by:
The following code: Private Sub ClearControls(ByVal ctrl As Control) Dim i As Int32 For i = ctrl.Controls.Count - 1 To 0 Step -1 ClearControls(ctrl.Controls(i))
5
7260
by: Darren Smith | last post by:
Hi There, I have a shopping cart app that displays products along with a textbox (to enter quantity) and an image button to add the item to the shopping cart. Please explain why my below...
5
1793
by: Amelyan | last post by:
I am struggling here trying to determine what is a good programming practice as far as referencing your URLs. When you use Response.Redirect, do you use 1) Hard-coded string --...
3
7588
by: Noremac | last post by:
My google skills must be dwindling. I am trying to determine how in ASP.NET 2.0 I can get the ReturnUrl querystring variable in Forms Authentication to contain the absolute url. Just like others...
9
2173
by: MrHelpMe | last post by:
Hello again experts, I have successfully pulled data from an LDAP server and now what I want to do is drop the data into a database table. The following is my code that will insert the data but...
5
5930
by: =?Utf-8?B?SGVyYg==?= | last post by:
I need a Table object in my RDLC with 6 columns on the top several rows, but 1 column on the bottom two rows: COLUMN1 COLUMN2 COLUMN3 COLUMN4 COLUMN5 COLUMN6 COLUMN1 COLUMN2 COLUMN3 ...
0
7199
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,...
0
7074
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
7322
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...
1
6982
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
5572
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,...
1
5000
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...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
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 ...

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.