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

Radio Button Problem

ChipR,

Good news i have figured the radio button issues out with some SQL and some VBA functions.

Thanks for you support.

I am still trying to diaplay all macthing types in the list box (Username Matches....) to the names i insert in the username combo box.

any ideas? please see below for the names of each object .

What i am trying to to is one a user selects active / inactive or All, they then proceed to typing in a username in the combo box called 'cbonames' as they start typing a list of all corresponding usernames in the users table (users) appears in the list box called 'lboxusernames'

once name found there should only be 1 entry in 'lboxusernames' and i want the user to click on that name to have it displayed in the 'cbonames' field.

i also require the updating of data if i was to delete a name in the cbonmaes field and start typing fresh the names should disappear from the boxusernames field and update with new chrecters im placing in, requery???

any thoughts or ideas would be great!

Thanks again ChipR

** Admin Edit - This post hijacked thread Access 2003 - forms and radio buttons **
Oct 8 '09 #1
8 2236
ChipR
1,287 Expert 1GB
I'm confused as to why you are using a combo box, and I can't tell where you're stuck. Do you want to post the code you have?
Oct 8 '09 #2
Chip,

Attached sample database.

If you look at the form (issueslog) the user will need to select one of the option groups first then the Username combo box becomes enabled.

Once enabled the user can start typing in a name based on the option group selection and whilst typing in a name i would like the list box to the right (Username Matches) to show all the suers that match the name

for instances if i had 3 users with surename Shah who were all active if i selected Active in the options group and type in 'sha' i should see all the users with their username starting with 'Sha' in the username matches column allowing me to select one.

i have dummy duplicate names in teh users table to try and solve this.

If using a combo box is incorrect please cna you support in showing me the right way.

Thanks mate - this is greatly appreciated.
Attached Files
File Type: zip Sample help.zip (196.4 KB, 88 views)
Oct 8 '09 #3
ChipR
1,287 Expert 1GB
Sorry, I can't download anything here. I do understand what you are tying to do, and you aren't using any of the functionality of the combo box. You are just using it to type into like a text box, yes? All the relevant code will be in the Change() event of the input box, so please post that if you can.
Oct 8 '09 #4
the funny thing is i have no text in the change event of the input box

Just to confirm by input box you mean the combo box where i enter the username or the text box that i would like to see the similar username results listed ?

For the combo box (username) i have sql in the row souce

for the text box (username matches) i currently have a non working sql query.

??
Oct 8 '09 #5
ChipR
1,287 Expert 1GB
The input box is the control where the user types in input. As far as I can tell, there is no reason this would be a combo box, so I would assume a text box. The list of matches would be shown in a list box.
Oct 8 '09 #6
I have used a combo box and created sql in the Row source to bring the fields required from the users table back to that box.(as below)
Expand|Select|Wrap|Line Numbers
  1. SELECT   Users.[Actor Name],
  2.          Last_Name & First_name AS Fullname,
  3.          Users.LAST_NAME,
  4.          Users.FIRST_NAME,
  5.          Users.Status,
  6.          Users.Email,
  7.          Users.IS_LOCKED,
  8.          Users.Description
  9. FROM     Users
  10. WHERE    (((Users.Status)=Forms!Issueslog!optStatus))
  11. ORDER BY Users.LAST_NAME,
  12.          Users.FIRST_NAME;"
optstatus is the option group i am using for active/inactive and all users.

I can laternatively use a text box and instead write the sql in the control source field - however that still leaves no coding in the change event field?

would you suggest changing combobox to a text box?

if so how would i apply that query to the text box?
Oct 8 '09 #7
ChipR
1,287 Expert 1GB
We are not on the same page here. Initially, you planned on having the user type in one control, and display the list of matches in another control. That's the method I have been explaining, so perhaps reread my posts from the beginning with that in mind.
Oct 8 '09 #8
NeoPa
32,556 Expert Mod 16PB
Sachin,

As a very new member I will avoid a formal warning in this case, but I suggest you check out our rules (Site FAQ) before posting again, as you've fallen foul of a couple of them already.

Thread hijacking is quite serious (usually. We make allowance for new members of course). Posting code without tags is also against the rules. Posting SQL in a single long line is not illegal, it's just not going to encourage anyone to look at your problem. The bright thing to do is to format it readably first.

Having said all that - Welcome to Bytes!
Oct 8 '09 #9

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

Similar topics

15
by: JR | last post by:
Hi. I hope someone out there who is more versed with JavaScript than I can help me with the following annoying problem. Here's the problem. I have a form with the following layout: Column A...
5
by: Digital Puer | last post by:
I have the following HTML form: - radio button A (default selected) - radio button B - input field, of type "file" with "Choose" button - submit button I would like to have it so that if the...
2
by: SenthilVel | last post by:
Hi i have radio buttons in my Page and i am able to see some starnge behaviour with those. 1st : DSN 2nd radio button: MSDE the above 2 are in collection.
2
by: NishSF | last post by:
Would anyone have any suggestions/javascript code so that if one clicks the Radio Button "Yes" below he has the option of selecting any of the six CheckBox below. If the user clicks on Radio Button...
1
by: Joe Attardi | last post by:
Hi all, On a form on one of my pages I have two <select> elements, and each one is paired up with a radio button. The idea is to choose an item from one list or the other and select the radio...
9
by: IchBin | last post by:
I can not see what the problem is with this script. I am just trying to set a radio button by calling setCheckedValue('abbr_letter', 'V'). Sorry I am new to javascript. <html> <head> <script...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
4
by: Z.K. | last post by:
I started a forms application and I put on the form three buttons. In the functions for the radio buttons I put in a single messagebox like: MessageBox("Hello 1") MessageBox("Hello 2") ...
7
by: moksha | last post by:
Hi, I am new to javascript and i am facing a problem in coding. plz help me out. I am using javascript for dynamically creating a table row which contains text boxes and radio...
11
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.