Desktop User Guides > Professional > Interview scripting > Sample management > Sample management facilities > Quotas > How to write a quota control system > Attaching the sample record
 
Attaching the sample record
Whenever a project uses sample management and quota control you must attach the sample record to the quota control system, so that sample management can communicate with quota control once it receives the sample record back from the interviewing program at the end of the interview. To do this, put the following statement at the end of AuthenticateSampleRec once you have rejected everyone who has failed authentication for any reason not associated with quota control:
QuotaEngine.AttachRecord(SampleRec)
For further information, see Quota Object model.
See also
How to write a quota control system