Create a UserForm

Pestomania

Active Member
Joined
May 30, 2018
Messages
292
Office Version
  1. 365
Platform
  1. Windows
I have a Query on Access that contains a column of initals. Currently the purpose of this report is to print based on the initials criteria and then go to the next. Is there a way to create a "USERFORM" that has two columns. One that contains all unique values from the selected column and then one on the right that is empty. In the center would be the "ADD" "REMOVE" buttons that allow you to select the unique values. Once added to the other side, a button can be pressed to cycle through those initals and print the corresponding reports without user interface.

Is it possible to have the USERFORM pull it's options from a query field? If so, how would I? If not, any ideas or suggestions?

Thank you

Link to an example of the list box (https://www.excel-easy.com/vba/examples/multiple-list-box-selections.html)
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Access doesn't have userforms. Add MSACCESS to your searches to get results for Access, not Excel.
This is one site that explains a process similar to what you are describing:
https://www.youtube.com/watch?v=n0ykubD6e8g

In general this is simply an extension of working with listboxes to add or remove items so you want to search for MSAccess ListBox add item and MSAccess ListBox remove item (perhaps, selected item more specifically). The buttons will just trigger the code so you put the code in the button click events.
 
Upvote 0

Forum statistics

Threads
1,215,007
Messages
6,122,670
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top