How to make combo box searchable in access? - forms

PICTURE OF COMBO BOX
I have included a picture above.
I have an access form that I created and I am using a combo box with a list of names that I would like a user to select. How can I make the combo box searchable so that a user would just have to type in the beginning of a name and it would come up with the closest name in the list, as opposed to having to scroll ALL the way to the bottom for a name that begins with a "w" for example.
Any help would be awesome! thanks in advance :)

Related

Microsoft Word: Adding ScreenTip changes text to {Hyperlink\| BookmarkName \o"screentip}, but want original text

Microsoft word fails to add hyperlink over bookmark and show Hyperlink text everytime
I select the text.
Then i add bookmark from Insert -> link -> add
Then when i add Link (ctrl+K) and go to insert document and screentip by clicking bookmark
It just show this text instead of original text.
Can anyone suggest what the issue is actually?
I think this is off-topic but you have more experience here than I do.
Press Alt+F9 to toggle display of field codes / results.
On some computers, this is Fn+Alt+F9. On Macs, use Opt instead of Alt.
The original text does not appear in the field code but is there and will show up in the document.
I originally missed your real question and the mistaken answer follows below.
This has nothing to do with the presence or absence of the bookmark.
This is the ordinary behavior of the Hyperlink and the AutoText fields in Word. The text displayed in the document does not appear when you display the field.
This is examined in my article on the Microsoft site about Pop-Up text in Word.
Here is the field insertion dialog box:
Here is what it looks like in the document:
And here is the field code shown using Alt+F9:
Note that the display text is not shown at all in the field code. It is still there. If you select the field and enter the following in the Immediate Window of the vba editor you will see the display text.
? Selection.Fields(1).Result
I suspect this comes from the origination of these two fields. With the hyperlink field, it is often created using selected text. It does not especially make sense, but it is how the field operates.

Unity Dropdown shows the first time around, duplicated text

I am having this issue where I have a dropdown that should say finances, inventory, and stats. Which when you click on it will cause other panels of UI to appear. Now for some reason, the options it says it has is all Money:(which is the first item name of the first option). Why is that? I've attached images below that show what I mean.
Sorry about the links i dont have high enough rep yet
Duplicated Text of Money
Another instance of ^
My Tabs
Dropdown Setup
Let's take a closer look at your third and fourth pictures and compare them to the default Dropdown UI element.
So in your third image you show a similar tree but what happened to the Template GameObject? It appears you deleted this and replaced it with the Finances GameObject. This is your primary issue. You can't delete this Template GameObject portion of the Dropdown GameObject. The Template is utilized by the Dropdown code in order to further determine the style of the Dropdown you'll see while in game as well as provide you with a template to look at. I don't know all of the internals of how this works, but I know it for sure plays a roll in your issue.
I know this because now take a look at my Dropdown component. Look at the Template field in mine and compare it to yours. Your's is filled with Finances rather than Template, which is the reason that your Dropdown populates with fields from the Finances rather than the values you are trying to pass it.
Here is what I suggest you do. I'm assuming that the FinancesTab, InventoryTab and StatsTab are all UI elements you want to open upon clicking the respective Dropdown item. If that is the case:
Create a new Dropdown GameObject
Don't delete the Template GameObject within it and leave the Template field in the Dropdown GameObject as is
Add a script that utilizes the SetActive function for each UI element (place them in public fields) to the Dropdown GameObject
Set this code up so that when a certain item on the Dropdown is selected, it sets the desired UI Tab to SetActive(true);
Now reference the new script in the OnValueChanged(Int32) field and reference the correct Method from that script in the dropdown menu in the OnValueChanged(Int32) field.
I believe this should solve your problem and help you achieve what you want. Take a look at the Dropdown API and this Youtube tutorial on Dropdowns if my steps are confusing. You can definitely achieve what you want by following those two links (that's how I figured them out!).
Hope this helps!
Your caption is the gameobject 'Label' so its defaulting that in the dropdown because there are no sprites. I'm guessing Label has a text component that says 'Money'?

PDF - combo box values change another field values

I have a PDF form created. One of the fields is a combo box with 3 values. Based on the selection of these values in the combo box, I would like to change the value of another combo box or text field.
Combo box values =
Professional
Amateur
Novice
Results change the "other field"(which is going to be the title of the page)=
This is the professional cover sheet
This is the amateur cover sheet
This is the novice cover sheet
So to recap. If I choose professional from the combo box, I want the text in the other field to change to "This is the professional cover sheet". This text can either be in a text field or combo box or whatever you tell me will work. This field is going to be placed as the title of the page.
This one is even better, gives more options/complexity.
PlanetPDF - Click Here
Bam! Found the answer. This works perfectly.
AcrobatUsers - Click Here

MS Word: change existing captions name

this is my first post, so I would like to say hello :)
I have a very large document, it consists of ~150 captions.
I would like to change name of the captions, for example from 'Picture' to 'Pic.'
Is there any simple method to do it? I can't imagine changing all of the existing captions and cross-references manualy.
Best regards,
Michal
Here is the way:
Select the caption with a number that has the label that you want to change.
For example, if you have "Picture 1", select the entire caption including label, sequence number, and the caption text.
On the References tab, in the Captions group, click Insert Caption.
In the Label dropdown, select the label that you want or click New Label and add a new one.
Solution found on Word Tips:
https://word.tips.net/T003888_Changing_Existing_Captions.html
"If you want to change some of the text in the captions, you need to modify the fields used to create the captions. (Automatic captions are implemented through the use of fields in the document.) You can change the text in the fields by first displaying the field codes in your document (press Shift+F9). You should be able to see what the field codes look like for your captions; examine one to see how it is constructed, looking specifically for the text you want to change.
Next press Ctrl+H to display the Replace tab of the Find and Replace dialog box. Use the controls in the dialog box to specify the caption text you want to change (from within the field you examined) and what you want the text to be. You can then use the controls to step through all the occurrences of the text and change it, as desired.
There are other things you can change in the fields using this same technique. For instance, you may want to change the numbering of your captions from Arabic to Roman. If you examine the field code used for a caption, it may appear similar to this:
{Seq Figure *\ arabic}
You can easily use the Find and Replace method to change the word "arabic" to "roman." When you are done making the changes, press Alt+F9 to change the field codes back to their results.
If your caption changing needs are a bit more complex (perhaps, for example, you want to change the caption to appear above a figure instead of below it, or vice-versa), then the best bet is to change the settings for automatic captions and then delete all the existing captions. You can then use cut and paste (cut the figure and paste it back in the same position) to force Word to automatically add the caption with the new settings."
you can edit individual captions by using Outline view.
(Update) To clarify: to edit an existing table (or I assume figure) individual caption, open your word doc in Outline View and select the caption you'd like to change.
If you want to batch edit you may be able to use find/replace in Outline view to batch find/replace all.
(Caveat: I was not able to easily edit a table caption while in Print View, so tested Outline View and it worked.)
Using the Find and Replace function changes both the cross references in the main text and in the captions.

Access Forms prevent mouse from selecting values from dropdown, force keyb input

I have a data entry form. Its properly tab indexed etc. and there are three dropdown menus which automatically unfurl with the on enter event.
No matter how much advice i give to users about using the tab key and keboard and checking what they just input.
they still insist on using the mouse to select values from the dropdown menus
the problem is that in their haste they often make mistakes as a result of using the mouse.
I would like to be able to force users to input into these fields using the keyboard.
the drop down is neccessary for users see the appropriate values for the field because the values will vary based on previous selections.
I have already tried experimenting with onclick events but to no avail.
Is there a way I can do this?
i am using access 2007 many of the users have access 2003.
Based on your comments, I would take one of two different approaches.
If your users are really comfortable with the codes AND know which ones they should use based on their previous selections, then just use text boxes instead of combo boxes. You can still put some validation code in either the Form_BeforeUpdate event or the individual control's _BeforeUpdate event.
If the users are not that comfortable, then I would suggest you have the first field in the combo boxes be the description of the code, not the code itself. So instead of choosing from 101, 102, 103 they are instead choosing from "Small", "Medium", "Large" or whatever those codes actually apply to. If you still wanted to display the codes themselves, you could do that with a separate disabled text box.
Now to answer your actual question. For the record, I highly recommend against using this approach. The simplest way I can thing of to prevent your users from using the mouse to select the combo box, would be to add a Transparent button covering the combo box.
To do this, draw a regular command button over the combo. Set Transparent = Yes, Visible = Yes, Enabled = Yes, Tab Stop = No.
When users click on the combo now, they will actually be clicking on the Transparent button and nothing will happen. The ONLY way they will be able to get into the control is by tabbing from a neighboring control or using a hotkey (via '&' in attached label).
Once they enter the control via Tab and your code forces a dropdown, they will still be able to choose an option using the mouse. But by forcing them to use the keyboard initially, it will make it much more likely that they just stick with the keyboard.
Again--I can't stress this enough--I think this is a terrible, horrible, no-good idea. Please don't use this approach. But you asked a technical question and this site is all about giving technical answers, so there you go...