In Microsoft Access 2013, I find that label formatting changes unintentionally when the associated textbox is disabled, if a margin is applied.
To create this problem:
Place a textbox on a form. An associated label automatically
appears.
Select the label and set its margins to anything other than zero (set
Control Margins to Medium using the ribbon, for example).
Select the textbox and change its Enabled property to No.
The format of the label is incorrect. There appears to be a text overlay which is not aligned properly.
The format changes whether the textbox is disabled at design time or at runtime. It reverts back when the textbox is enabled.
Is this simply a bug, or are there settings which cause this behaviour?
I have used the following workarounds; neither is handy if the label and textbox are part of a table arrangement of controls.
Delete the associated label, and create an independent label for the textbox. The label is not greyed out when the textbox is disabled.
Resize the label so that margins are not necessary.
There's four combinations with the Enabled / Locked controls on a form. The option you're after is Disabled and Locked. Neither label or control is greyed out.
I've illustrated below what you can do with each of the combinations:
Related
When I add any element (control like text box, label etc) to my form, it has default style as:
Font: Calibri (Detail)
Font Size: 11
Fore Color: Text 2, Lighter 40%
How is it possible to change that, I need MS Sans Serif, 8, Black for default.
Thanks!
In Access 2018 (though sure to change in the future) this is done by:
Select the object whose values you want to make default
In the "Design" tab, to the right of where you select a new control to add (text boxes, option buttons, ect.), click the bottom "carrot" style arrow to open a sub menu
Click "Set Control Defaults"
Don't know what version of Access you are using, but I'm sure the newer versions have similar features. (I use 2003 because I hate having everything showing up in one scroll bar)
First Setup a Form, text box, and label to the settings you would like and save. (Background Colors as well).
Second Click AutoFormat button> Customize > Set Standard from the form and click OK.
Should do the trick. AutoFormat Button looks like a Wand over piece of paper.
Open the form in design view.
On the design tab of the ribbon, in the Controls group, click on the Text Box button, but - this is important - do not click on the form yet.
Activate the Property sheet. All properties you set now, will become the default for new text boxes on this form.
Activate the Format tab of the Property Sheet.
Scroll down.
Make sure that the Auto Label property is set to Yes (this is the default setting).
Change the LabelX property to 0.
Change the LabelY property to (for example) 0.75 cm or 0.3".
You can now click on the form to create a text box.
In Access is it possible to change the caption of a button based upon a text box control that is displayed on a continuous form?
I'd also like to enable and disable the button on the continuous form depending upon the value in the record's text box control.
I've tried on the OnCurrent form property but that takes the values of the first record of the continuous form and sets all buttons on the continuous form based upon that rather than setting the buttons on the continuous form for each record.
Unbound controls on a continuous form can only refer to the current record. It may be possible to bind the control in some way. You can use conditional formatting to do a variety of quite interesting things.
Try setting the caption in the Detail_Paint event for the form:
cb_SetSpecies.Caption = [Species_Name]
This allows a different value to be set for each record.
I am having a problem placing a border around a single TextBox. For some reason when I put a border around it, SSRS Applies the border to plenty of other TextBoxes in the same area.
I have a TextBox that is part of a Group That is part of Tablix. I am doing the following
Right clicking the TextBox
Clicking TextBox Properties
Clicking Border
Clicking the outline preset / manually clicking each border in the preview.
Clicking OK.
After I do this, the border style is applied to any TextBox this TextBox I right clicked on touches.
I thought it might have something to do with the TextBox being in the group, so as an experiment, I got rid of the borders and set just the back color. That worked as expected. - Just the single TextBox had the back color.
This doesn't make any sense. Why aren't borders being applied to the single TextBox?
Today, during my search I saw your question as I was having the same problem.
I solved this problem for myself and now I am submitting an answer here so that others can use it.
Follow these steps:
Click on TextBox to which you have to give boarder.
Then, go to the Property Sheet which is on the right side of your IDE window. It will show all properties of the selected textbox.
Change Border property value in the Property Sheet
Now, you will see that the Border value(s) you specified in the Property Sheet has been applied only to the selected textbox, not to other text boxes.
Hope it will work for others just like it worked for me.
I have created a parameter on a report that allows the user to open all the group details or hide group details when the report is run.
This works, but when you run the report and select to expand the groups, the little icon use use to show/hide on the report is a + symbol instead of a - one.
While the actual report is right, i can see it confusing the users somewhat as it looks like there is something hidden, when in fact its all there -
alt text http://www.beakersoft.co.uk/img/report_icons.gif
Any one seen this or know how to fix it?
This problem (wrong display of plus-minus tiny toggle icon) occurs when you want to initially set the Visibility as Show, in the Group Properties (bottom left pane, Row Groups, right click). The solution is to:
Click the text box where the toggle icon should appear
At the property pane, near the bottom, under the Visibility, set InitialToggleState to True
You can set the initial appearance of the toggle icon for the textbox properties (The textbox that controls the visibility of a row/group). You can find this setting under the Visibility tab of the textbox properties dialog box. Use an expression to determine the initial appearance of the icon for different toggle items.
See this short article for more info:
I was facing the same issue.
To resolve this issue Make InitialToggleState property of text box on which display is toggled conditional.
Like this
=iif(Parameters!DrillDown.Value,true,false)
And my show or hide is based on expression
=iif(Parameters!DrillDown.Value,false,true)
Ok so I add all these text boxes on an unbound form, and everytime you open a form, it sort of jumps to the first text box so you can enter some information into it.
How do I get rid of that, because I do not want it to auto jump to the first text box when the form opens...i do not want it to jump to any text box when the form open at all.
thanks
You will have to decide where you do want it to go, because it has to go somewhere. You can control where will tab order, set focus, and autotab.
I have just checked, and the best thing to do is to set the textboxes Enabled property to No and the Locked property to Yes.
The default behavior is of course for the cursor to move into the first control that you’ve set up in the tab order.
Assuming you still want some sensible tab order in the form, then place a zero length text box in the forms headder. Remove the tab stop setting (other tab in property sheet). You might as well set this box transparent also.
Then in the forms on-load event, simply go:
Me.NameOfTextBoxinFormsHedaing.SetFocus
If I read your question correctly it seems that you do not want any of your textboxes on the form to have the focus on opening the form.
What you need to do in this instance is to create a new unbound textbox on your form, and then make this unbound the first item in the form's tab order. Then resize the unbound textbox to 0 height and 0 width, making it invisible.