473,387 Members | 1,483 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,387 software developers and data experts.

using keypress with option group...out of range

I was using the keypress with an option group

If Me.ActiveControl.ControlType = acOptionGroup Then
If KeyAscii >= 48 And KeyAscii <= 51 Then
Me.ActiveControl.Value = Chr(KeyAscii)
End If
End If

well this works fine if all the option groups have the same buttons

but if one has 9 buttons you would have to do something like
keyascii>=48 and keyascii<=57

so then I ran into a page full of different amounts of buttons.

anywhere from 2 to 9 buttons and if I just did this I would end up
putting 9 in values that only took 2 or 3.

I do not want to go thru and put in range checks because not only
would this be a lot of work but would cause error boxes for values out
of range instead of just ignoring out of range values.

Is there a way to look at the value of the buttons in the option group
and use that value to determine min and max of the control so I could
automate each controls min and max values on its buttons ?

Jun 27 '08 #1
0 1188

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

Similar topics

5
by: Georges Heinesch | last post by:
Hi. I created an option group using the wizard. I included 3 option buttons. An option group (in general) can be enabled or disabled completely (includung option buttons and their respective...
2
by: Charles | last post by:
Ok, so I'm creating a form on the fly. I can create the option group, I can create the checkboxes, but I can't figure out how to bind them to the option group I'm creating them within. I was...
11
by: MLH | last post by:
Why is that? If I choose the tiny check boxes which are hard to hit with a mouse, it works fine. But option buttions, shich can be sized big enough for people with limited sight and dexterity...
1
by: =?Utf-8?B?R2lsZXMgUGFwd29ydGg=?= | last post by:
have an asp.net option group list. I need to be able to style it or at least override the render event so i can put in my own styles. Short of developing an inherited control of the option group...
2
by: rottweiller | last post by:
If a have an option group with letters A - Z and All. How can i click on say 'A' and get all the names starting with 'A' displayed in the list box in ascending order
1
by: assgar | last post by:
Hi I need help. I know what I want to accomplish, but I do not know how to do it. WHAT I NEED HELP ACCOMPLISHING: How to do I insert data into a table for a date range of...
2
by: sara | last post by:
Hi I'm having a very strange problem and need HELP!! I have a form for the user to choose a report (radio button in an option group) and parameters (Dates, Season). Click the option button,...
3
tuxalot
by: tuxalot | last post by:
I have a listbox showing reports, and when a report is selected, criteria (dates, employee name, etc.) necessary to print that report become visible. For a few reports, I would like to have the...
1
by: wayne smith | last post by:
Hi, I am building a inventory system using ms access. Each inventory id can be from different regions. In one form, users enter the inventory id and if there is more than one region, another form...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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,...

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.