I know, in Access, it's possible to have the query display all fields in Design View via the Asterisk entry in the Show Table list. However, is there a way to easily add all of the fields so they appear individually, aside from double-clicking or dragging them?
Double-click on the 'header' section of the table to select all fields, and then drag them onto the query builder grid:
I figured out that standard selection methods work for these, like either shift-clicking or control-clicking allows selection of multiple items in the list.
Related
I want to have a dropdown menu to enter data from a list directly into the Access table, ie into the cells for a particular column/field.
Can this be done or do you have to use a form?
If it can be done, how do you specify the options for the list?
Go to table design. At the bottom, select the second tab "Lookup" (or similar, it is localised) and specify the lookup values or source.
I suppose that my question will be considered silly, but I'm really stuck.
How can I view all tables in the *.accdb file?
I use Microsoft Access from Office 14 to open and edit that file. Then I go to the Database Tools tab and select Relationships, where I expect to see all the tables, but actually I can't.
I see there some tables and even saved queries. And some of these queries use tables, that I can not find.
I'm newbie to the Access, but have to make some edits to the database.
UPD:
Somehow I've managed to view necessary tables through the maze of Object dependencies. Is there a more simple way?
It sounds like some tables are set as Hidden and you don't have the View Hidden Objects setting checked.
Press F11 to show the navigation pane if it is hidden. While that is open, right-click the top of the bar and choose Navigation Options. In the next screen, you'll see an area Display Options, whose first checkbox is Show Hidden Objects. This will allow you to see greyed icons for hidden tables in the navigation pane. It also adds the names of hidden tables to the "Show table..." box in the Relationships.
In relationships right click anywhere in the empty box, show table, select all tables, click add
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 will preface this with saying, this is my first time using listboxes and earlier posts were criticized for lacking detail. So, all help is greatly appreciated and I hope this is enough information without being overkill.
Currently, I have a listbox updating a junction table with an on click event (iterates through selected items and if they are not in the table it adds them). The list box is also updated by an option group (based on the option group value a query populates the list with the appropriate items and they are selected/highlighted based on the junction table). Also, when items are a "sub-category" the "category" is also selected. This functions perfectly until I ask it to do more...
Problem 1: I need to differentiate "categories" of items from each other. So, I have included a blank item to the list box to add a space between categories. When the blank items are present the listbox does not update the junction table properly and vice versa.
Problem 2: My users want to be able to deselect the "category" under certain circumstances. This is fine, just de-select the "category" after the "sub-category" is selected. However, the "category" is re-selected whenever the listbox is clicked again because it iterates through all entries.
Perceived solution for both problems: Return only the index of the item (de)selected and manipulate accordingly. Is this possible? If so, how?
OR: Should I take a different approach?
One can think of a list or combo box as a low-resource sub-form. Conversely, one can use a sub-form to take care functions usually handled with a list or combo box.
I don't understand all that you're trying to do, but I do know that "up-sizing" to a sub-form is usually the answer when a simple control (for whatever reason) can't cover the need.
I want to implement chained select boxes: the first select box determines the values in the second select box. I want this to work in plain HTML first, and add Javascript later.
Should I have both select boxes in one form tag, or have two seperate forms on one page, each with a select box?
If you want to send and retrieve all selected values at once, put them in the same form. If you want to send and retrieve only one at once, put them in separate forms. Simple as that.
One form (at least on the initial page).
Either:
with only one select by default (which is submitted to the server, which returns a new form with a hidden input replacing the first select and a second select chosen based on the option selected) progressively enhanced to generate new selects when options are picked.
with all the selects in the form, with instructions about which one users should use based on their first answer, progressively enhanced with JS to hide them all (except the first) and then reveal them based on the options picked.
whatever is more convenient for you. Not realy software related