ms access 2003 - Text boxes on a form: not jumping to any text box - ms-access

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.

Related

How to remove the combo box arrow in an access query in a field that isn't a combo box? I don't know why it's even showing up

The field is a regular text box with a short text parameter. In all of my forms I never once turned it into a combo box. However, in the query with no special criterion, whenever I enter a record and this field, a combo box "arrow" shows up. There is nothing to choose from but if I change the record, it gives me the combo box error that the specified item is not in the list. How do I remove this?
Thanks in advance.
Advise to never build Lookup fields with Lookup wizard in table design. Also don't manually set DisplayControl property on Lookup tab to combobox or listbox. Most likely your design does the latter without setting RowSource property.

Remove the editing cursor in the table's fields of Forms in Access

I have some Forms in my project which tables. Those tables has records, where I have on each line, some text fields (informational), and some buttons. When I select one of those lines with the mouse, by clicking on one of the text fields the editing cursor is always twinkeling in the field where I clicked. I would like that my mouse click only select the line in a color, and doesn't edit the field (This cursor is not a real edit, because it's impossible to really modify something to the edited text, but it would be more professionnal to remove it)
Any solution? (VBA/Access Form design,...) Thanks a lot
Put a small (virtually invisible) control on the forms detail line. In each field you don't want them to settle on put a "got_focus" event that resets the focus to the virtually invisible control.
You can also use the on current event to set an unbound empty control to make the whole row change colour as per this explanation https://access-programmers.co.uk/forums/showpost.php?p=1480574&postcount=6 . Ignore the very complex code shown initially in the thread.

MS Access: Why does label formatting change when textbox is disabled?

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:

Change default style of MS Access elements

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.

Label and Enable/Disable a button on a continuous form based upon text control value

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.