MS Access richtext textbox formatting menu from VBA - ms-access

I have a richtext textbox control that works nicely enough. I can change the formatting of the text if I use the mouse to select some text--then the contextual formatting menu appears and I can select the various formats that I want (e.g., bold, ital., highlighting color, text color, etc.).
However, I'd like the formatting menu to appear at other time, for example, on right-click, or, when text is selected using cursor keys, or, when some key combination or command button is clicked.
I've searched for how to use VBA to bring up the formatting context menu but have found nothing.
Anyone know the VBA code to bring up the formatting context menu for a MS Access richtext textbox control?

That is not possible I'm afraid.
Two common solutions are adding the formatting options to the ribbon, and creating your own custom formatting menu, in combination with hotkeys. (Some already present, such as Ctrl-b for bold.)
Let me know if you need any help with either direction.

Related

Change the appearance of drop downs

Dropdowns are useful, but they would be even more useful if the dropdown options could be formatted. For example, using bold or italic text for various selections, or changing the background color of other options on the dropdown display.
It's easy to have a cell formatting change according to the dropdown selected, but that's not what I'm trying to do. I want the formatting of the the dropdown items to be different than simple plain text.
I'm not sure changing the colour of data validation options is possible, but you can exploit the fact that Unicode fonts include italic and bold versions in their extended character sets, and use these characters instead of the usual ones to achieve some of what you want. Use an online tool like (for instance) https://yaytext.com/bold-italic/ to give you the bold/italic versions of your required text options, and add these to your validation list.
It sounds like you are asking for a way to change the appearance of the control that appears when you click the dart in a drop-down cell. The built-in controls in Google Sheets cannot be customized that way.
To implement your own custom controls, use Apps Script to implement a custom dialog box or a sidebar.
A simple script that, for example by selecting a value in a column 5 (change), changes the formatting of the text? Or do you want the text in the validation to be changed?
function onEdit(e) {
if(e.range.getRow()>1 && e.range.getColumn() ==5){
e.source.getActiveRange()
.setFontSize(11)
.setFontWeight('bold')
.setFontStyle('italic')
.setFontLine('line-through')
.setFontColor('#ff0000')
.setBackground('#ffff00')
};
}

How to create navigation forms in Ms Access 2007

I want to create 'Navigation Forms' in 'ms Access' as it should look like a form but i need to navigate in between them.
And the forms are composed of queries creation of form is simple but the problem is like if i can create in 2010 or 2013 its just simple but i dont have upgraded version but i think there is some way to create page navigation like 2010 and 2013 in 2007.
Any help is accepted.
Here is a sample link in 2010(https://www.youtube.com/watch?v=ovcxmeyrILQ)
Tab Controls are NOT the same as Navigation Controls! Tabs Ctrls hold separate forms on each page or tab, which means when the main form loads it loads ALL the sub-forms that are contained on the various pages of the TabCtrl.
Sadly Nav Ctrls were introduced in A2010, however, I've been using them since 2003. Well obviously not exactly because they were introduced. But instead I used labels (not command buttons although you can use those - I chose labels because I wanted to change the background and font color of the selected "tab"). I also wrote a function that took the value of the label (aka subform name) and used that to change the form of a subform control which was placed directly below or beside the labels depending on whether I wanted a horizontal or vertical "nav ctrl".
I could upload the code for this, however, I believe, given that MS has given a better control than this work around AND you should be able to piece this together if you've got a basic working experience with VBA.

Microsoft Access z-index property

I have a form including listboxes. I'm trying to change order of listboxes. I tried bring front or send back but they are not working in form view. I found z index property for arranging their priority. However, following codes are not working. Is this correct way to do it? Or is there any other way with or without codes to do this?
Me.Controls.SetChildIndex (Me.List0 , Me.List1)
Thanks for any help.
Without using code:
You can change the z-order by right-clicking any control and selecting "Position" then selecting either "Bring to Front" or "Send to Back."
Unfortunately, Access does not support the ZOrder method for manipulation using code. Microsoft Forms does support the ZOrder method which can get confusing when it comes up on Access Help.
As I reread your question, I wonder if you're talking about tab order. If so, right-click and bring up "Properties," select the "Other" tab, then adjust the "Tab Index" property. Also, make sure that the "Tab Stop" property immediately beneath is set to "Yes." In code you would use FormName.ControlName.TabIndex=0 to set a control to the first tab position.
Hope this helps!
Reference: Personal experience (and hours of frustration)
docmd.RunCommand acCmdDesignView
forms("form1").Controls("text0").inselection=true
docmd.runcommand acCmdSendToBack '(or docmd.runcommand acCmdBringToFront)
docmd.RunCommand acCmdFormView
Also, ZOrder is still not supported by Access 2016. As such, I have not yet learned a way to write a single line of code that puts a control in between two others, I just send the middle to back and then the back to back, and expand this to however many controls have to overlap.
And last, even though you use the VBA for ZOrder, your English does ambiguously sound like forms("form1").Controls("text0").TabIndex=34, which as Olek suggested, is also quite simple.
I did this on one Access form: The control I wanted on top I just cut and pasted it back to the form, then moved it over the one I wanted to cover. In this case, it was a text box (bound), almost the same size as a combo box (unbound); only the dropdown of the combo extended a bit to the right of the text box, so when the form was loaded the text box looked like a combo box. The user clicked the dropdown and made a choice and the record(s) pulled up were reflected in the text box.

Sample HTML code for a complex form control (see mockup)

I have tried searching for this but I do not know the name of the control or UI so I am not having any luck. I'd like to know if there is a name for this UI and if you know of a good link to sample html that would be ideal.
It will be used inside of a jQuery UI dialog box as well as on a standard page within a web app.
Thanks!
You need to use a two-sided multi-select list...
The jQuery two-sided multi-select list converts a normal drop down list into the mock-up you've posted and automatically moves selected items over to the right-hand list as well as adding buttons for movement (plus you can double-click items to move them back and forth).

Access 2007 Reports - How to 'unfix' fields?

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