// Create or update the Inspection record.
if (qmInspection.isValid()==false)
{
// New inspection record to be created.
qmInspection.create(inspectionID, inspectionDescription);
}
else
{
// Amend existing inspection record.
qmInspection.getProperties();