473,473 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Showing listbox values in msgbox

13 New Member
Hi, I have got 4 separate listboxes on a report and dependant on the content of the report, I wish to display a message box to inform the user of data inaccuracies that are appearing on the report. All I want it to contain is the contents of the 4 list boxes (which as I have said are filled with the correct criteria) next to each other with a message above it. I'm not sure if this can be done by combining the 4 list boxes into a combo box or what I have no idea.

Thanks for your help.
Gareth.
Oct 30 '07 #1
4 4176
gazsharpe101
13 New Member
Hi again, I have got 4 separate listboxes on a report and dependant on the content of the report, I wish to display a message box to inform the user of data inaccuracies that are appearing on the report.

Basically, when the report is loaded, it runs a query and fills the listboxes if certain criterion are met. So, what I want is if the lists get filled then to message box the user with the contents of the 4 list boxes (which as I have said are filled with the correct criteria) next to each other with a message above it. I'm not sure if this can be done by combining the 4 list boxes into a combo box or what I have no idea.

Thanks for your help.
Gareth.
Oct 30 '07 #2
nico5038
3,080 Recognized Expert Specialist
I can't get a clear view on what you want to achieve.
When data isn't accurate, you need to produce an error report, but perhaps by telling what the users need to do in laymans terms will help....

Nic;o)
Oct 30 '07 #3
gazsharpe101
13 New Member
Hi, thanks for your reply. I will try and explain what I am trying to achieve and hopefully you will be able to help me:

What happens is, the user runs a report that is based on a parameterised query. When they run this report, they have to input a parameter which obviously defines what the query returns and hence what the report will show. With the way the report works, it is possible that there may be slight inaccuracies with what is displayed on the report, but this is due to information on the database being incorrect. So, what I want to happen, is when the report is run, a message box appears saying if the figures on the report don't quite add up then it is due to an error on the database and that the user can still see the report but if they want it to be 100% accurate then they need to correct it themselves because I am not in a position to make any assumptions on their behalf.

I have 4 lists in the report header (although it doesn't matter where they are really), and these all get filled using SQL statements which are all variants of the query on which the report is based (so in essence it runs the query again but filters out information based on certain values - the information that is filtered out are the database inaccuracies).

So I want a box to show up and saying something like "please be aware that for the following cases, some information in relation to what is being displayed on this report is incorrect, this will need to be corrected to ensure 100% accuracy on this report".

I hope this helps to explain a little bit more about what I want.

Thanks again for your help.
Gareth.
Oct 31 '07 #4
nico5038
3,080 Recognized Expert Specialist
Hmm, I see you're suffering from poor database design.
In a "good" database no errors will be present as they are refused when entering the data.
In your case there are two options:
1) Produce the report only based on correct data and create a separate error report.
2) Produce the incorrect report and warn the user.

Looks like you're working with option 2 and want to anticipate for the fact that the report can be accurate or not.
In this situation I would divide the report into 2 sections:
1) Data with error(s)
2) Correct data
That way the user gets the message printed on the report. Triggering errormessages from the creation of a report isn't really userfriendly.
When you can determine that a report contains incorrect data, it would be preferable to inform the user on the "frmReport" with the [Print] button and the required parameter fiolds.

Getting the idea ?

Nic;o)
Oct 31 '07 #5

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

Similar topics

6
by: R.Wieser | last post by:
Hello All, I'm trying to get a "Virtual Listbox" to work. I've currently got a form, and used CreateWindowExA to create a ListBox with the LBS_OWNERDRAWFIXED and LBS_NODATA flags on it. I've...
7
by: Douglas Buchanan | last post by:
I cannot access certain column values of a list box using code. I have a list box 'lstPrv' populated by the query below. SELECT tblPrv.fkPrvID, lkpCat.CatNm, lkpSrv.SrvNm, lkpCat.pkCatID,...
2
by: Sally | last post by:
I have a simple multiselect listbox with a rowsorce of MemberID, MemberName, SendLetter. SendLetter is a Yes/No field. What is the code to set SendLetter to Yes when the user selects MemberName? I...
2
by: Alan Lane | last post by:
Hello world: I'm using Access 2003. I have 2 listboxes. One is a single column. The other has two columns. I can use Dev Ashish's code (thanks Dev!) from the Access MVP Website to accumulate...
13
by: Gittyup | last post by:
Help please, We have a form, based on a query, that contains a listbox. The contents of the listbox are based on the results of the query. When the form is opened, the user selects an item...
6
by: Grant Schenck | last post by:
Hello, This seems like it should be easy... I have a listbox on a .NET form. I add a new item to the list box. How can I associated a separate data value?
1
by: JNariss | last post by:
Hello, I have created a form called frmS2P with the following: 1 listbox called List11 which holds the contents of a query created off my table called tblRequestActions. The fields which the...
2
by: teo | last post by:
I have a Listbox, if I set EnableViewStarte = False the AutopostaBack fired by SelectedIndexChanged doesn't work. The 'SelectedIndexChanged' event should call
3
by: ngchaitra | last post by:
Hi, I have a registration form where i am using a listbox where we can select multiple values.I am storing these values concatenating with commas(for eg. A,B,C).Now i have to update this...
5
by: erbrose | last post by:
Hey all, newbie to vb here. I've created a listbox (called lst_county) that gets populated from a Select * From Table in Oracle on load. I've set the MultiSelect to 2 -Extended. I've got some code...
0
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
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...
1
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
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...
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,...
1
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.