Epi Info™ User Guide

Command Reference


Check Commands: NEWRECORD

Description
This command saves the current record and opens a new record for data entry.

Syntax
NEWRECORD

Examples

Example 1:  The command button named FinishButton runs the NEWRECORD command when the button is clicked.

Field FinishButton
   Click
       NEWRECORD
   End-Click
End-Field

Example 2:  If the value of Sex is “Male” then give a message and create a new record.  Otherwise, go to the next question specifically for Female subjects.  This code assumes a form exists with a field named Sex and a field named ChildBearingAge.

Field STLRate
   After
      IF Sex = "Male" THEN
         DIALOG "The remaining questions are only for Female subjects. Please proceed to the next record." TITLETEXT="End of Current Record"
         NEWRECORD
      ELSE 
         GOTO ChildBearingAge
      END-IF
   End-After
End-Field