Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bound and unbound controls in ms access

What is the difference between bound and unbound controls in MS Access? How do they differ? And when on an MS Access Form in design view, how can we tell if a form is bound or not?

like image 369
Jay Avatar asked Oct 22 '12 10:10

Jay


People also ask

What is bound and unbound in MS Access?

Bound control – associated with a field in an underlying table. Use bound controls to display, enter, and update values from fields in the database. Unbound control – does not have a data source. Use unbound controls to display pictures and static text.

What is the difference between unbound and bound?

So, a bound form has a RecordSource, a table or query to which the form is "tied" or "based". An unbound form does not have a RecordSource, that doesn't mean it can't contain data, but the programmer will have to bring that data in manually, where a bound form automatically is associated with some data.

What is unbound in database?

Unbound forms are forms with no data source, whereas bound forms have one and it's the default way to bind your form to your tables or queries.

What is the most common bound control in Access?

The most common type of control is the text box; these can display many different types of data, such as text, numbers, and dates.


2 Answers

A bound control is one that is bound to a field in a table or to a function. An unbound control has no Control Source property, similarly, a bound form has no Record Source. You can check the property sheet.

record source property sheet

like image 34
Fionnuala Avatar answered Dec 09 '22 15:12

Fionnuala


Bound elements are linked directly back to the relevant tables, and when you amend any data within form's, your changes are immediately written to the tables. This can often lead to people questioning why "when I close a form does it save the changes?" Well that's bound behaviour for you, and to prevent any updates you must use procedures such as BeforeUpdate to cancel if necessary. Bound controls are easy to identify as they will contain the field names from the table in design view.

Unbound forms are quite the opposite, they are not tied directly to database fields and involve more coding work in order to initially populate them in normal view. However these will not automatically make changes to your tables without a custom procedure you have written e.g. a Save button. This allows a little more control, but also involves more work and good understanding of VBA coding. Unbound controls are also easy to identify as they will contain the word unbound in design view.

Note: There is much more can be said but this is a basic outline.

like image 57
Matt Donnan Avatar answered Dec 09 '22 14:12

Matt Donnan