Probably I'm not wording my problem in Google properly but I have a form that uses a query as the source and one of the field (Price) is a dlookup formula. The problem I am having is that some products do not have a fixed price, so I need a method to manually enter the price in the text box anytime those products are selected. On the same form there is a Quantity text box, once it is clicked a pop-up is triggered and the user can change the amounts if I get something along that lines when the Price field is clicked a pop-up is displayed for the user to enter the price.
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 trying to combine multiple selection criteria into one new field. This can be a text box or listbox, whatever is handy to work with.
I do not know how to attach a zip file with my access database so I will send a pictures to show my access form.Access Form
At the top you are able to filter the database on various criteria and the results will show up in the ListBox beneath.
Then you are able to choose one of the calculation options or select an item in the Listbox or create your own value. By choosing one of the radio buttons above I clicking the save button I would like the following to happen.
Columns 0 to 4 from the selected item in the ListBox should be saved in a box underneath.
The value of the selected option from the radio button should be saved next to it (as column 5)
Columns 6 to 9 from the selected item in the ListBox should be saved next to it.
If the user did not select an item in the ListBox there should be a popup that he should select an item.
The user should be able to perform multiple searches and save all the selected items for each search, so at the end the user has an overview of all the items he has saved.
I hope my question is clear, otherwise just let me know!
Thanks in advance,
Vinesh
I was able to make a work around by using an append query.
Now it is possible to save the selected item in the listbox combined with the selected option of the radio buttons.
Sadly every time you hit the button you are asked if you agree on making a change in the table and that the rows will be updated.
Is it possible to either turn these two messages off, or to find a direct way of saving the data into the table?
Exist:
A query with data and one of the columns is criteria based off of user input (i.e. [please choose a number:])
A report, based on that query, that asks for the same user input when opened.
A form with buttons to open said report and others and also a combo box based on a table.
Is it possible to make it so that when the button was pressed (to open the form), while a value was picked in the combo box, then the report that is loading will use the combo box value instead of asking the user for input?
I tried creating such action with both the Macro Builder and the Expression Builder in the OnClick button property. But failed.
Is this attainable in VB code? Is it even possible at all?
Thank you.
Assuming that the bound column of your combo box is the value that you wish to use to filter the query, simply change the query criteria from [please choose a number:] to instead reference the value held by your combo box, e.g.:
[Forms]![YourForm]![YourComboBox]
I am a beginner at Microsoft Access trying to creating a database and one of the fields is a memo field. I would like to request user input for that field; However, the standard inputbox has a single line for the user to enter data, and although you can use that to add large amounts of text, it is not pleasing.
I want an inputbox that accepts memos so as the user inputs a paragraph of text, he can see the entire paragraph when he submits.
How would I do it using an inputbox and not a form? Is this possible?
I am guessing you are entering the data directly into the table. If so you can simply hover over a line between two rows until you get the double arrows and click and drag. When closing the table it will ask you if you want to save your changes. if you say yes then every time after that it will appear the same when when opened. This will give you more viewing area per field. However, I do agree with HansUp, this is best controlled via a form. Here is a snapshot of a table with more room per row.
The same can be done with query results.
A user can select a value in a combo box and the detail automatically loads into the forms fields. How can I automatically select a particular value when (or after) opening the form and get the detail to load?
I've managed to set the value of the ComboBox after opening the form, but the detail on the page doesn't change until I manually select a value in the ComboBox.
Is the subform built with code or more simply by setting the link master field to the combo and the link child field to the matched field for the bound column? For the most part, the second way is best as it does not require the After Update code for the combo to be triggered, which won't happen when the value is set via code.