423,851 Members | 1,787 Online
Bytes IT Community
Submit an Article
Got Smarts?
Share your bits of IT knowledge by writing an article on Bytes.

Parts of a form - Nomenclature

zmbd
Expert Mod 5K+
P: 5,285
Last Update - 2018-07-18

Introduction:
The brainchild behind this article is to help establish some sort of common naming of the basic parts of form construction and controls to assist our Experts and Members describe what is happening.

While this would seem to be basic common knowledge, there have been many threads where a lot of confusion could have been avoided if we were using the same name for the same control/section of the form

This is a work in progress

Main Access Window
How to even get to where we need to be to start designing a form and where is the form located...

So to start a basic form design one can use the Wizard and while this is great for some basic things we need t be able open a new form for design
On the ribbon, create tab, forms group, form design
<01_AccessGUI>

-Note: if any the images are too small (I'm in the bi-focal crowd myself :) ) right-click on the attachment below and open in a new window or tab to see the larger image.

<02_CreateForm>


Notice the navigation form, these are NOT for the faint of heart, I'll have another article covering these love/hate forms... for a preview see here:
Post#2 these are very nice to use; however, have a lot of quirks

Also avoid split-forms - these are a nice concept; however, the implementation is difficult for many users to handle.

Ok if you have clicked on the correct control in the Ribbon>Create>Forms group it open a basic form in the design view - The initial form is blank and unbound

<03_FrmDsgnVw>



I've set the form's [Pop Up] property to true so you can more easily see the form separated from the Form's property sheet and added a few text boxes. Notice two things here; first, that I have the form selected as shown by the dot on the form and in the property section drop down list and second that this is an "unbound" form as I haven't set the [Record Source] property.

So the form when it's loaded for the user should look like this
<03_FrmDsgnVw>



Referring back to image <03_FrmDsgnVw.JPG> clicking on the tool box drop arrow will show all of the available controls one can add to a form
<05_FrmDsgnCtrlTBx.JPG>


Hovering you mouse over each tool will open a tool-tip that shows the name of the control, in order;
  • 1st Row: Select,Text Box, Label, Button (or Command Button), Tab Control, Hyperlink, Web Browser Control, Navigation Control, Option Group, Insert Page Break, Combo Box.
  • 2nd Row: Chart, Line, Toggle Button, List Box, Rectangle, Check Box, Unbound Object, Attachment, Option Button, Subform/Subreport, Bound Object Frame
  • 3rd Row: Image

In <05_FrmDsgnCtrlTBx.JPG> the [select] tool is active as well as the "User Control Wizards" - normally I do not use the control wizards so one of the first things I do is toggle that setting off – other than toggling the Wizards, this article will not go into the “Set…” or “ActiveX…” options.

The [select] tool is the only tool that does not have a presence on the form itself; however, when it is active the select tool allows you to select the form, control object, or set of control objects on the form – hovering your mouse over this tool will provide you with a short description of its behavior

So, because there is a limit on the number of attachments for each post, I’ll be putting each control on its own post as it appears initially when added to a form in its unbound state along with its name and, when applicable, links to object references, etc… I invite my fellow moderators to edit each post to add any additional context.

>> In order to keep this article easy to read, please post any feedback, suggestions, or complaints to this thread:
https://bytes.com/topic/access/answe...rm#post3817600
instead posting into the Insight Article

Thank You
-Z
Attached Images
File Type: jpg 01_AccessGUI.JPG (129.7 KB, 406 views)
File Type: jpg 02_CreateForm.JPG (70.6 KB, 365 views)
File Type: jpg 03_FrmDsgnVw.JPG (166.2 KB, 635 views)
File Type: jpg 04_FormSmpleView.JPG (61.7 KB, 359 views)
File Type: jpg 05_FrmDsgnCtrlTBx.JPG (30.7 KB, 360 views)
Jul 18 '18 #1
Share this Article
Share on Google+
3 Comments


zmbd
Expert Mod 5K+
P: 5,285
Text Box and Label controls

Because the Label and the Text box are so intimately related, it seems fitting to cover them both in "one go:"

<101_TextBox_Design>


The “Text Box” (or “TextBox”) control when it’s added to a form will normally include a default “Label” control that is associated with the TextBox control.
For the TextBox shown here are when the TextBox is completely unbound, when it is bound to the form’s record-set, and finally a calculated value. I’ve set the caption for each associated Label to reflect the TextBox’s state.

For the Label, shown are the Labels associated with the TextBox controls and a few unassociated Labels in the header and footer sections of the form. Labels can appear anywhere on the form; however, keep in mind that Label controls in the detail section will repeat with each record.

Not shown - but you can also place a TextBox controls (and most other controls) in the page header/footer and form header/footer sections.

And, of course, what the control looks like when the form is loaded and active...
<102_TextBox_Form>



> The most common mistake is to use the name “Text Box” when referring to a “Label” – these two names are not interchangeable:
  • “Text Box” controls have “Values” and usually display record values, calculated results, or are for user data entry
  • “Label” controls have “Captions” and are usually used to display static information; however, I often use these to display information that is not stored in the database to users about the status of queries or other information that I do not want them to interact with instead of using a locked textbox

for more detail about the inner workings here are some starting points:
Relocating the post - working
Attached Images
File Type: jpg 101_TextBox_Design.JPG (163.4 KB, 346 views)
File Type: jpg 102_TextBox_Form.JPG (58.2 KB, 354 views)
Jul 18 '18 #2

zmbd
Expert Mod 5K+
P: 5,285
Button or Command Button

The command button consists of the object itself and the caption within.
It's simple.
It's direct



Microsoft: CommandButton Object (Access)
Attached Images
File Type: jpg 200_CommandButton.JPG (48.7 KB, 329 views)
Aug 7 '18 #3

zmbd
Expert Mod 5K+
P: 5,285
Tab Control
<under construction>








There is some more detail about this control here:
https://bytes.com/topic/access/answe...es#post3817543 if you read through this thread hopefully the need for a common naming scheme is apparent, otherwise, we spend a lot of time just trying to figure out what we're talking about.

Microsoft: TabControl Object (Access)
Attached Images
File Type: jpg 300_DrawTabControl.JPG (103.0 KB, 328 views)
File Type: jpg 301_TabControlParts.JPG (94.5 KB, 324 views)
File Type: jpg 302_TabControlPartsAddCtrl.JPG (95.7 KB, 372 views)
File Type: jpg 303_OnTabPgCtrlsAreDffrnt.jpg (47.3 KB, 368 views)
Aug 7 '18 #4