This document provides an overview of preparing data for entry in EpiData. It discusses creating a data documentation sheet (codebook) to define the variables from a questionnaire. The sheet includes the variable name, label, type, length, possible values and value labels. It also discusses preparing the EpiData triplet files - the QES, REC and CHK files. The QES file defines the database structure and layout. Data is entered into the REC file. The CHK file contains data validation rules. The document uses a tuberculosis laboratory register as an example, showing how to efficiently code variables like sex, treatment outcome and reason for examination in the data documentation sheet. It provides guidance on naming variables and the different field types in