I am putting together a web form and I want to show or hide tabs based on a combobox. I'm not exactly sure how to do this in the best way. The combo box is just 1-10 and if 3 is selected, I want it to display 3 tabs, etc.
I can take a really roundabout way and hide everything with macros, but is there an easier way to reference the tabs?
Thanks.
Each tab has a name and you can hide/show tabs using Visible property
tabMyTab3.Visible = False
Related
I have a Continuous Form that has two combo boxes. If I don't link them together all values appear but if I link the two combo boxes to make one of them depend on other for easier choose from, the values never show in the second combo. I try to make code with if condition in vba to requery the combo values to show in all records but I couldn't. How could I do that? Thank you for all what you do
This technique is known as cascading combobox. A very common topic. Be aware that if combobox RowSource uses an alias (displays text when saving ID) the text will not be available for display in all records when the list is filtered. This is especially disconcerting for users of continuous/datasheet view form.
Could have code that only filters second combobox when it gets focus then restore the full list when loses focus. Users will still see data briefly disappear from other records and may find distracting at first but will learn to disregard.
However, a workaround to maintain display of text is to include the combobox RowSource lookup table in a query used as form RecordSource. Bind a textbox to the descriptive text field from lookup table. Set textbox as Locked Yes and TabStop No. In continuous view, can size and position textbox on top of combobox to obscure combobox text but still show drop arrow (a "hybrid" control). In datasheet view the textbox will not be superimposed but text will be displayed.
If controls are superimposed, users accustomed to clicking into combobox text frame and typing input will encounter aggravation as the textbox will likely be the control they click. Tabbing to the combobox or clicking drop arrow will cause combobox to get focus and display over the textbox.
I am currently working on making my Flex application accessible.
I have an mx DataGrid that I am using for showing complex data. Each row contains information about a person and one of the columns contains a button to "submit" that person's information.
Currently if I tab to the DataGrid, it has focus on the whole thing, but I cannot tab to individual cells. For accessibility purposes, I need the user to be able to tab to each of these cells to read the information. Everywhere I've looked I've found that it seems the only way to focus on an individual cell is to set the editable property to true. However, I do not want to make the field editable, as that information should not be changed.
At the very least I would like to be able to tab to the cell that has the button ItemRendender for each person. I could set the rest of the information in the accessibilityName of that.
Is there any way to accomplish this? Or am I going to have to find a more "creative" solution?
In case anyone is wondering how to get around this, the only way I could find is to switch over to an AdvancedDataGrid. If you set the ADG's selectable property to true, you can use the arrow keys to select a whole row at a time, and the screen reader will read the whole row of information.
Then to get the effect of clicking the row's button, I set a keyboard event watcher that performs the function of the button using the target(ADG)'s selected item when you press space.
I'm fairly experienced with MS Access 2003, but 2007 has a new feature that is confusing me.
I'm maintaining an Access database with a variety of reports. Some of these reports have fields with constraints on where I can move them. If I move a field vertically, ALL the fields in that section must move with it. If I move a field horizontally, it automatically switches with the field next to it.
This is clearly a feature since it makes some kinds of reports easier, but it's just getting in my way now since I need to have detail fields on 2 lines. Can someone tell me what this thing is called and (more importantly) how do I turn it off?
The feature is known as "Control Layouts." Here's how to get rid of them:
Remove controls from a control layout
Removing a control from a
control layout allows you to place it anywhere on the report without
affecting the positioning of any other controls.
Select the control you want to remove from the layout. To select
multiple controls, hold down the SHIFT key and then click the controls
that you want to remove. To select all of the controls in the layout,
click the layout selector box at the top left corner of the layout.
Do
one of the following:
On the Arrange tab, in the Control Layout group,
click Remove.
Right-click one of the selected controls, point to
Layout, and then click Remove. Access removes the selected controls
from the layout.
TIP To prevent a control from being inserted into
a control layout as you move it, press and hold the CTRL key, and then
drag the control to where you want it.
The full documentation for the above excerpt can be found here: Modify, edit, or change a report
So there are 8 categories that may be associated to each order, but not necessarily all of them. So i was going to build a list box that allowed the user to double click each of the category they wish to associate when they have an "Order Detail" form opened up (unbound form that has hidden text boxes with all needed ID numbers).
I want to have another empty text box right beside it that will allow me to append the selections (up to 8) so the user can see that they have been added.
So one list box with the default choices, and when a choice is double clicked, it adds that choice to the second list box to see the tally so to speak.
What is the VB for getting something like this done?
Thanks
Justin
I suggest that you are making life difficult for yourself. Create a subform with the Order Detail table and a combobox that allows the user to select the various categories.
If you want two list boxes --- one for available choices and another for selected items --- and the ability to move items back and forth between available and selected, it can be done with VBA, but is not trivial. See How do I select items using dual list boxes? for an example.
Personally I favor Remou's suggestion if you can make that work for your situation.
I'm trying to create a very simple form in an Access database. Whenever I drag a textbox on the form, a label gets created with it. I want to be able to move the label without moving the textbox,but whenever I try to do that, the textbox moves with it. Its like they're linked with each other.
Is there a way to separate them from each other so that they can be moved separately?
Yes, but you are better off looking for the small square black box that appears on the top left corner of each control when you click the textbox or label. This box will allow you to drag each control independently. Don't forget Format->Align (Left,Right,Top,Bottom) it is probably more useful for tidying up controls than anything else.
You can separate the label from its parent control by deleting the label, clicking the detail section to ensure that no controls are selected, and pasting, but I would advise against it. You can do a number of useful things with labels that are related to controls and one of them is move the two together - this is useful when you have the form tidied. Another is to find the parent of the control, which is useful when using VBA to change controls.
While in design mode, With the label and field selected, click the Arrange button located on your ribbon toolbar along the top, you will see a button in the control layout section of the Arrange group. Select the remove button. This will remove the connection between the label and the field.
You can also use Group/Ungroup menu commands to establish/remove the connection. Grouping the label and control causes them to move together in design view.