473,624 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to highlight textbox with the max value

Using A2K. I've developed a survey form with a number of questions
that have 6 possible responses each. The possible values are 5
(Strongly Agree) down to zero (No Response). I want to develop a
report that looks like this:

<Question 1 text>
Strongly Agree Somewhat Agree ..... No Response
<Count of 5's> <Count of 4's> <Count of zero's>

<Question 2 text>
Strongly Agree Somewhat Agree ..... No Response
<Count of 5's> <Count of 4's> <Count of zero's>

<...and so on...>

I want to highlight the response with the highest count for each
question. Any ideas on how to acheive this without going thru a bunch
of if..then's?

Thanks for any help or advice.
Nov 13 '05 #1
1 1976
You could use a recordset with the following query. (I'm assuming you
have a field for each question containing the answers).
SELECT Q1Answer, COUNT(*) AS NoOfAnswers
FROM Table1
GROUP BY Q1Answer
ORDER BY COUNT(*) DESC
The first record of the recordset will contain the answer most given
for question1. You can then use the OnFormat event to highlight
(change the font for example) of the answer.
ma**********@ho tmail.com (Ellen Manning) wrote in message news:<da******* *************** ***@posting.goo gle.com>...
Using A2K. I've developed a survey form with a number of questions
that have 6 possible responses each. The possible values are 5
(Strongly Agree) down to zero (No Response). I want to develop a
report that looks like this:

<Question 1 text>
Strongly Agree Somewhat Agree ..... No Response
<Count of 5's> <Count of 4's> <Count of zero's>

<Question 2 text>
Strongly Agree Somewhat Agree ..... No Response
<Count of 5's> <Count of 4's> <Count of zero's>

<...and so on...>

I want to highlight the response with the highest count for each
question. Any ideas on how to acheive this without going thru a bunch
of if..then's?

Thanks for any help or advice.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2588
by: Red | last post by:
Hi, I'm not very familiar with Javascript. I usually leave that kind of stuff up to Dreamweaver, but i'm starting to need a little more than it can offer. I have an asp page which creates a form from a record set. Very simply it lists items that can be ordered by the customer. The customer simply enters the required qty for each item and hits submit:
3
3434
by: JingleBEV | last post by:
Hi all, I have a masked text control that would return a date in string format via the mask property like: "9/23/2004" and i have a calendar control that would pop up when I click a command button, I know the masked text control always returns a valid date. How do I code in the command click to highlight the correct date on calendar control?
5
56498
by: Cox | last post by:
How would I go about highlighting text in a textbox?
0
1427
by: Chris Fink | last post by:
I am having a problem highlighting a row in a datalist during the itemdatabound event. What is occurring is that a new td row is being wrapped around the datalist item which is highlighted (very small), but the actual row that I want to be highlighted is not. Style is being applied to the wrong td row. Following is my code for webform: <asp:datalist ID="dlSmartKeys" Width="700" CellPadding="0" CellSpacing="0" Runat="server">...
5
7281
by: marfi95 | last post by:
I'm very confused. I'm trying to automatically select the text when my textbox gets the focus. This is typically when the user has clicked the mouse in the field. This is the code I have in the Text1_GotFocus event: Text1.SelectionStart = 0 Text1.SelectionLength = Text1.Text.Length However, the text does not get highlighted. It appears to be the
1
9881
by: John | last post by:
Hi, When a textbox gets focus in WinForm, the text inside the textbox is highlighted with default color. How can I get the value of the default highlight color like the following? Dim BackColor as Color = MyTextBox.BackColor Dim ForeColor as Color = MyTextBox.ForeColor ' And hopefully I can use something like the following: ' Dim HighLightColor as Color = MyTextBox.HighlightColor
2
1788
by: Number 11950 - GPEMC! Replace number with 11950 | last post by:
When you highlight a selection of text represented in an object on a form, somewhere in the Framework or alternatively in the Windows API there exists an array of variables that either contain as a string the portion of text before the highlight, in the highlight and after the highlight, or as an integer or long the beginning and length of the highlighted string or other related data. The question is where? TIA
2
1657
by: wassimdaccache | last post by:
Please help me Using access 2003 I do have a form (continuous) that expand for me all products in a table name " I made a in this form and it is unbounded What i need is a botton that on click i want to find any part of the field where the = ---> get the focus on it and highlight it
7
15042
by: sphinney | last post by:
I have a datasheet style form with textbox (MyTextBox) that has the Text Format property set to "Rich Text". It is bound to a memo field in a table. How do I change the text or highlight color of certain text in the textbox such that the formating is saved in an underlying memo field? My situation is a little different than other posts I read. Most posts show how to find and select certain text in a textbox, and then change the formating...
0
8233
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8170
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8619
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6108
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2604
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 we have to send another system
2
1482
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.