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

Home Posts Topics Members FAQ

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 2237
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, 89 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
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: 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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.