levo

Building a Desktop Solution with a Database

Binding the database to the interface

  • 3 things to know
  • A2 Unit 2
Start revising · £5/month

Overview

Binding source, grid control used for in a database application and most common fault when saving from a bound form.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is a binding source, and what does it add?

Key term

What is the most common fault when saving from a bound form?

Key term

How is a calculated value shown on a bound form?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What does it mean to bind a control to data?

    Model answer

    Binding connects a control on a form to a column of an in-memory table, so the control shows the current row's value and any edit the user makes is written back into that table without code.

  2. 2

    What is a binding source, and what does it add?

    Model answer

    A binding source sits between the data and the controls, holding which row is current and offering methods to move between rows, add and delete. Every control bound through it therefore shows the same row.

  3. 3

    How do several controls on one form stay on the same record?

    Model answer

    They are all bound through the same binding source, which holds a single notion of the current row, so moving to the next record updates every bound control at once.

  4. 4

    How is a list control filled from a related table?

    Model answer

    The list is bound to the related table for its contents, told which column to display and which to store, and its selected value is bound to the foreign key column of the record being edited.

  5. 5

    Why is a list bound to a related table better than a typed code?

    Model answer

    Choosing from the related table guarantees the value exists, so referential integrity cannot be broken, and it removes both mistyping and the need for the user to remember codes.

  6. 6

    What is a grid control used for in a database application?

    Model answer

    A grid shows many rows at once and is bound to a whole table, which suits displaying the lines of an order or the results of a search, with the detail of one record shown on a separate bound form.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A null is the of one.
absencepresencetype

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Building a Desktop Solution with a Database, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.