This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Using the key system

The Key System is a constraint to ensure that data is not entered or imported more than once into Snap and duplicate records do not occur. It is, however, only useable when the data has some unique identity variable in each case and it needs to be used with extreme care because of the ability to overwrite existing data when using it.

Accessing the Key System

  1. Ensure the survey you wish to use the Key System with is open.
  2. Open the Data Entry Window by clicking on the Data Entry button Data Entry window button.
  3. Select File | Key System to display the Key System dialog box.

  4. Tick the 'Activate key system' box to make the Options radio buttons active.
  5. As the Key System effectively allows Snap to overwrite data if it finds two cases which match, it is much safer to use the 'Use Key Variable' option, than to use the 'Use Case Number as Key' option, particularly when using the Key System in tandem with the Database Link Wizard. More details about this can be found under 'Using the Database Link Wizard' in this manual.
  6. In the example opposite 'CustomerID' has been chosen as the Key Variable. Each customer should only have answered one questionnaire and the Key System will allow us to check and verify this efficiently.

    If a Key Variable which includes some no replies is chosen Snap will alert you to this and will not allow you to proceed with the set up.

    If you tick the 'Use Specify Key dialog' box Snap will always check the Key Variable of each new case you enter.

  7. Click 'OK' and return to the Data Entry Window.
  8. Click New button to enter a new case to the survey.
  9. If you have clicked 'Use Specify Key dialog' Snap will display the dialog opposite. You need to type in the value of the Key Variable for the case you are about to enter. In this example it will be the CustomerID.

  10. If you have not clicked 'Use Specify Key dialog' Snap will not display the previous dialog and will only alert you that an existing case is about to be overwritten with a new one once you have finished entering data for the case.
  11. If you choose at this point Snap overwrites the existing case with the details of the one you have just entered.
  12. If you choose Snap returns you to the case you are currently entering in order for you to amend the value of the 'Key Variable': in this case the CustomerID.

    Key overwrite query dialog

  13. If you click New button to add a new case and then make changes to the 'Key System' dialog without adding any data to the current case, Snap will refer to the case as a deleted case.
  14. If you return to the case and add any other data to it, Snap will remove the 'deleted' label and the case will appear as normal.

    The Key System can also be accessed and modified through the Database Link Wizard, when importing or exporting data to or from an external database. It helps to ensure that there is no duplication of records and that those respondents who have answered the survey twice only have one of their questionnaires included in the survey. Full information on the Database Link Wizard see the section entitled 'Importing/Exporting Data'.

WinHelp: BombRemember, although the Key System is an efficient way of checking that each new case entered is unique, because it has the capability to overwrite existing data it is much safer to choose the 'Use Key Variable' option, rather than 'Use Case Number as Key', particularly when importing or exporting survey data or when using the Database Link Wizard.

See Also

Questionnaire Mode

Interview Mode

Prompted Mode

Fast Mode

Tailoring Data Entry

Masks

Auto answer

Setting patterns on data entry

Data verification

Deleting Data

Understanding data entry statistics

Entering data in Fast Mode