Frame Option Buttons To Control Combo Boxes

Jul 15, 2005

Hi all, a newbie with novice access skills.

I'm very good with utilizing the access tools however I can only code in vb editor minimally. What I'm looking to do is have the option buttons control two combo boxes. One to search by user name and the other to search by serial #. I've created an option group with two buttons I set the default values in the combo boxes in accordance with the option buttons However, the option buttons aren't doing what they are supposed to do. I've been told I need to tweak the code for the buttons in order to make them control the combo boxes. Does anybody know what I need to do to make this happen? Ultimately the user will be able to click either of the buttons to perform a search through a single combo box.

Thanks to everyone out there for making this possible. Your expert knowledge will help me grow into an expert myself.

Thanks to all in advance! :confused:

View Replies


ADVERTISEMENT

Forms :: Option Buttons (2) To Control Combo Box

Jun 10, 2015

I have 2 Option buttons that I want to use to control a combo box. If I select Option1 then I want it to pull from one table for the drop-down choices. If I select Option2 I want it to pull from a different table. The Option buttons and combo box are all on the same form.

View 5 Replies View Related

Create Check Boxes/Option Buttons/Option Group Using VBA

Mar 14, 2008

I’m really stuck on how to create: Check Boxes/Option button/Option Group in VBA.

Could someone help on either all of them or some of them please?

Thanks

Richard

View 2 Replies View Related

Option Buttons/check Boxes

Sep 21, 2004

I have a form with a number of fields for users to enter data into, with a "Total" being calculated. The users also have the option to ignore these fields and just enter a total manually into a seperate "Totals" field.

I want to set the form up so that when the form is opened the manually entered "Totals" field is hidden, leaving users to enter the component values, with the total being calculated automatically.

However, I want to add an option button so that if users just want to type in a total manually rather than enter the component values, they click the option button and the manually entered "Totals" field appears and the other component fields become disabled. This would prevent both a calulated total and a manually entered total being entered into the form.

Any help on the code that I need to use when the option button is clicked would be greatly appreciated.

View 1 Replies View Related

Forms :: Control Option Buttons Based On Selected Date

Jun 28, 2013

I'm building a workCube reservation system and I've been tasked to have it work kind of like an airplane seat reservation system. I've laid out my form with option buttons representing the location of each available space. (space1, space2, space3...space16)

My desired outcome is to be able to select a date from a calendar popup and have the options buttons react to that date if they have been reserved. (change color and indicate "reserved").I've tried to create the form based on a query which represents the "booked" table.

Tables:

Employee
(k)empID
emplyeeName

Space
(k)spaceID
space

Booked
(k)spaceID
(k)empID
(k)bookdate

Some rules a space can be booked by any ONE employee on any day.How can I get any and all of the option buttons to react if there is a reservation in place on the day indicated by the calendar?

View 4 Replies View Related

Forms :: Set Date Depending On Choice From Combo Box / Option Buttons

Mar 30, 2015

I'm looking to have either a combo box,, or 2 options buttons (whichever is easiest) that set a date field based on what is selected in the combo box/ option buttons.

The variables are 'Payment in 30 days" " Payment upfront"

if "payment in 30 days" is selected the date field on the form will enter the date as + 30 days from todays date
if "payment upfront" is selected the field on the form will enter todays date.

This date field must be blank unless an option is selected, as this information is only entered in a later stage of the form.

I've tried a few different ways to enter this but i can't quite get it to work as i want.

View 3 Replies View Related

General :: Dynamically Adding Option Controls To A Frame On A Form

Aug 20, 2012

In Excel, I can dynamically add option controls to a frame on a form using the Control.Add method. Is there an Access Equivalent? I can only find Count & Item as Control. items.

It might have something to do with design view i guess.

View 5 Replies View Related

Forms :: Changing Combo Boxes To Option Groups?

Dec 11, 2013

I've created a form using the form wizard and all of the fields show up as combo boxes. I would like to change a couple of them to option groups with radio buttons. Is there anyway to do this without deleting the fields and making the option boxes from scratch? The reason I ask is because when I do the option boxes from scratch with the wizard, it alters the way the information shows up in the datasheet (it's a split form).

View 2 Replies View Related

Blank Option (radio) Buttons In Option Group

Aug 18, 2006

I am using an Access database for a foreign language dictionary project.

One of the forms I use is populated by a query (qryLemmaTable) to retrieve information from tblLEMMA.

This form works precisely as I intend it to work, but there is a glitch on it that is driving me mad.

The form in question has an option group with 11 radio buttons that correspond to the parts of speech associated with each word in tblLEMMA.

When I click on the button optAdjective I apply a filter and the only records that are displayed are adjectives. (The same applies for Nouns, Verbs, Prepositions etc.)

Here is the glitch: even though the radio buttons apply the filter correctly, no “black spot” appears in the button. Other signals on the screen let me know what word type is selected, so I can accomplish what I want, but I want the “black spots” too!

Perhaps this will be a clue: For each radio button I use the following code in the GotFocus event.
Me.FilterOn = False
Me.Filter = "wordtype = 'A'" ‘(or N, etc)
Me.FilterOn = True

And this for the Lost Focus event
Me.FilterOn = False

Thanks for the help.

View 3 Replies View Related

Forms :: Unbound Object Frame Inside Tab Control

May 24, 2013

On a Tab Control inside a from, I've created an Unbound Object Frame, referring to an MS Excel Work Sheet. The goal here is to link that Unbound Object Frame residing on the Tab Control and save the form/link.

Now, when I execute the code, the Object Frame is linked and updated, but when I close the form, the link inside the Object Frame is not saved! However, when I do the exact same thing without placing the Object Frame on one of the pages of the tab, so as regular control inside the form, all works fine.

The code is as follows (performed when I click the button);"OLETest" refers to the UnBound Object Frame placed inside the first page of a Tab Control inside the form.

With OLETest
.Enabled = True
.Locked = False
.Class = "Excel.Sheet.12"

[code]...

View 2 Replies View Related

Modules & VBA :: Capturing Events On A Frame Within Multi Page (tab) Control

Aug 23, 2013

I have a form with a tab control and an option group (frame). When I built the layout of the contents of the first tab, the frame responded properly to click events. Now that I have copied them onto the tab control, the events seem to disappear.

(When I check the events for the controls, they are all still there, and selected by the Properties table).

I know it's probably one of the "doesn't use Access very much, does he" type of situations, so how to get these controls working again!

Here is the Form Code listing.

Option Compare Database
Option Explicit
Sub SetSourceDescription()
If Me.frRunMode.Value = 0 Then
Me.lblSourceType.Caption = "Source for this run will be the Extract .pst file(s)"

[Code]...

View 3 Replies View Related

Forms :: Cascading Combo Boxes Don't Show Control Source Value Until Requery

Dec 31, 2013

I have a set of cascading combo boxes. When a value is selected in Cat 1 ID, it narrows down the selections in Cat 2 ID which narrows down the selections in Cat 3 ID.

However, the values don't show up for columns Cat 2 ID or Cat 3 ID until I enter the row. Then I have it set to requery the fields because the underlying data isn't populated. But then when I leave the row, the values go away.

Why doesn't it show the underlying value from the table? Each column is bound to a field in a table - I would assume that the recorded value would show up. Did I miss something easy?

I've attached a picture of exactly what I mean.

View 2 Replies View Related

Option Buttons

Apr 4, 2006

I have been tryign to work with Option Buttons and am not having much success. I have been looking on line for examples and I get close.

The example tells me to Set the GroupName Property although I can not seem to find it.

Basically what I do is use the wizard and select the Option Group and add that to the form. With the wizard I enter three Label Names and take the default Values.
I then add a Control Button and use the code below.

Result:
Everytime I click the Control Button it gives me all three MsgBox's. Its reading all the values in the Option Group NOT the one that is selected??????

CODE:
Private Sub Command11_Click()

Dim x As Control

For Each x In Me.Controls

If InStr(x.Name, "Value1") Then
MsgBox "You Selected Value1"
ElseIf InStr(x.Name, "Value2") Then
MsgBox "You Selected Value2"
ElseIf InStr(x.Name, "Value3") Then
MsgBox "You Selected Value3"

End If
Next
End Sub


I HAVE BEEN TRYING A FEW VARIATIONS AND I GET ERRORS WHEN USING THEM:
1. I changed the .Caption to .Name...IF I USE CAPTION it tells me that this "Object does not support this property or method"
'Check for the string "Option" within the caption of each control.
If InStr(x.Caption, "Option") Then

2. Dont knwo where GroupName is
'Check the group name.
If x.GroupName = "mygroup1" Then
MsgBox x.Caption

3. Value gets an error
'Check the status of the option button.
If x.Value = True Then

View 3 Replies View Related

Clear Option Buttons

May 26, 2006

Below is the code that I used to make a Menu. The only problem is that when a report is opened, it is placed under the Menu form instead of on top of it.

How can I get it to stay on top?



Private Sub Frame2_Click()

DoCmd.Restore
On Error GoTo MyTrap

Select Case Me.Frame2

Case Is = 1
DoCmd.OpenForm "Resident from Last Name", acNormal

Case Is = 2
DoCmd.OpenForm "Resident from Phone No", acNormal

Case Is = 3
DoCmd.OpenForm "Resident from Address", acNormal

Case Is = 4
DoCmd.OpenReport "Multiple Addresses", acViewPreview

Case Is = 5
DoCmd.OpenReport "Missing Phone Numbers", acViewPreview

Case Is = 6
DoCmd.OpenForm "Update/Add/Modify PGIDdb"

Case Is = 7
DoCmd.OpenForm "Delete Records", acNormal


Case Is = 8
DoCmd.OpenReport "PrintAll", acViewPreview

End Select

MyTrap:
If Err.Number = 2501 Then
MsgBox "Action Canceled"
Else
End If

DoCmd.Close acForm, "PGMenu"
DoCmd.OpenForm "PGMenu", acNormal 'This places Menu on top of opened report etc.

End Sub

View 1 Replies View Related

Yes No Ungrouped Option Buttons...

Nov 8, 2006

I need 2 option buttons created individually, as an option group has proven utterly worthless to me for what I need.

A simple Yes / No pair that toggle back and forth when clicked.

I would use an option group, but you cannot define an On Click Event Procedure on an Option group button, and I cannot set the value of an option to 1.06 or anything other than whole numbers.

I just want to set a simple On Click event for each to set a variable to one of 2 possible values.

Thanks

View 1 Replies View Related

Forms :: How To Use Option Buttons

Apr 22, 2015

how to use option buttons? I've looked around, but I cant find any site, thread, etc, etc on how to fully use them. I have 3 option buttons, there "Retired" "Current" and "Not Stocking" I want them to be tied the the list box named "lstItems" that gets its info from a qryItems.

View 14 Replies View Related

Filter Form With Option Buttons

Oct 4, 2005

Hi All,

Just wondered if anyone can help me with this.

I have a form based on a query that has 16 options for values in one of the fields. I wanted to put an option button for each value on a form that would allow the user to view the records based on which option buttons were selected and have the form update accordingly.

The way I've gone about it is to have some code in the after_update event thingimy of each option button that updates a boolean value in a table that's linked to the underlying query the form is based on - but this just seems a long way to go about this... plus it's not working...

I've searched the archives for clues on this but haven't come up with anything. So I just wondered, is there a better way than what I'm doing. I'm not after somebody to do this for me, just point me in the right direction.

Many thanks,

Peter

View 3 Replies View Related

Option Buttons Group - Grrrr!

Nov 7, 2006

Hello, I wonder could anyone help, rescue and succour me.

As a former VB6 developer, I'm now working with wonderful Access VBA 2000 which makes the simplest operation such as creating a listbox or adding a control array into a living, breathing nightmare.

Today's incubus is option buttons.

Dear people, please tell me how it can be so hard to create a group of option buttons which are mutually exclusive and by whose value I can set another variable? I tried just sticking them on the screen, but then soon sobered up when I realised that Access would merrily allow me to select all of them if I so wished in joyous defiance of what an option button is actually FOR.

So I consulted the oxymoronic Help (even though it's impossible to construct an oxymoron with one word, this particular piece of functionality has somehow managed it) and was advised by same to create an option group. This I duly did - then realising that I had to set this property called Option Value 1,2, 3 etc. No sooner said than done. Anything to get it over with.

Now having different values, one would imagine that all I do is give each option button the same name. But no - control arrays in this environment would be like the discovery of the wheel in Caveman Land. So I google it and am told that I have to select the name of the option group.

Now where in all Christendom or Islamdom or NoGodsAtAllDom (in case Richard Dawkins is logged on and wants to help) can I find the name of this option group? Nowhere was I asked to assign an option group name, nowhere can I see a control that resembles an "option group", whatever that may be.

If someone could enlighten me I would be very grateful as a simple problem has once again taken hours thanks to the Access VBA environment. Grrrrrr

And thank you.

View 5 Replies View Related

Search Form With Option Buttons

Oct 18, 2005

Hello,
I have a form named Welcome which I want to use as search menu for my database.
I have added 4 option buttons and a unique textbox into which users will write their query criteria.
My database has 4 queries and each option button should refer to one of them once selected

Obviously I will need a command button that will run the query.

Any help or code to do this? Thanks.

View 1 Replies View Related

Clearing Buttons From An Option Box Menu

Jun 20, 2006

I have a switchboard which gives two selections. Upon selecting a menu item, the new menu appears. If I select from this new menu, it runs as it should do. However, upon returning to this second menu, the button remembers where it was instead of being cleared to select the same item, if desired, again. How can the option box button be cleared as do the switchboard buttons?

View 1 Replies View Related

Radio Buttons And Option Group

Feb 28, 2007

I added an Option Group / Radio Buttons to my form.
I named a few.

My question is no how to I test and run code based on the button that is selected.

If this then that?

I just am confused here.....if it was a txtbox I would say

If txtbox = ? then
End If

View 1 Replies View Related

Change A Listbox Recordsource With The Use Of Option Buttons

May 27, 2005

Good afternoon

I have been helped out so many times in the past here I thought I would try my luck again.

Is it possible with the use of option buttons to change the row source of a listbox?
I want to use the listbox for a search criteria and thought it might be easier to have 1 listbox been updated from the choices made using a group of buttons.
I would like like the row source to be based on different tables maybe I might need to use queries.


Can anyone point me in the right direction?

View 6 Replies View Related

Using Option Buttons To Decide Corresponding Search Mode

Sep 12, 2005

dear experts,

i am a student and i have a project to complete in 2days. i have managed to crawl through access and come up with forms and a functional query set. i need to create a search function for names and addresses. i manged to do a fisrt name search. i need to make an option for users to choose either first or last name and then search for the other details.

here is my situation, i need help connecting a radio button to a search form. allow me to illustrate my form.

************************************************** *******

first name : _________ (combo box) last name : _________ (combo box)

[0] (option button) [0] (option button)


SEARCH ( command button)
************************************************** ********

as of now, the first name combo is connected to the search button via a macro which launches the query with a value from the combo box. how do i make the user choose either option "first/last" and then make the search button search appropriately. please help me. i know this is elementary. i've spent too much time looking for a solution on my own. my time is running out to complete the project. and i've yet to create switch boards and all those other things. please! thanx all.

View 2 Replies View Related

Place Option Group Buttons To Right Of Labels

Mar 16, 2006

When I create an option group, the buttons or checkboxes appear to the left of the labels. Is there an easy way to make them come out on the right side of the labels? When I move them around manually it is hard to make the buttons align properly with the labels.

View 2 Replies View Related

Forms :: Creating Form With Two Option Buttons?

Apr 10, 2015

I am doing a worksheet for college and have been asked to create option groups on a form, but I cannot work out how to do this.

The screenshot shows what I have to do but I cannot get the option group wizard to open.

When creating my form based on the design in the screenshot I dragged the Rate field onto the design view sheet but it has only one option button connected to it, I need to add another one that will be connected to the same field and am not sure how to do it. I did try adding another option button from the control bar but I am not sure if is connected to the same field with the correct yes/no properties.

View 5 Replies View Related

Option Buttons Convert Values To Text

May 18, 2012

I am designing a database for our audit teams to carry out reviews of our claims handlers and have put next to each of the questions on a form an option group of three option buttons, "Yes", "No", "Not Applicable" with the values "1", "-1" and "0" respectively. This value is then stored in a table under the relevant field, intQuestionValue, for Q1, Q2, Q3 etc.

This works well for calculating scores, percentages etc. for all the questions. However the manager of the team has said that there will be times when he wants to report by the number of "No" answers for example, so that he look at trends and build these into training plans etc.

I do have a table, tblScores, which has two columns in it. One for the text element, "Yes", "No", "N/A" and the other has the corresponding numeric value in it.

Because there are numerous questions i cannot seem to create a join in a query for the numeric value to bring back the text value. The only other method that came to mind was to write the text outcome to a table as well at the same time, but I'm not sure how I would do this at the same time as clicking the option button, or would it all save when i (the user) closes the form?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved