Hi, I have written an order form that uses a flat file database to write the data from the form to. I want to lock the datafile so only one person can write to it at once. Given a file handle of OFILE can anyone give me some sample code to lock and then unlock the file?<br><br>Thanks, Will. <p>fortytwo<br><a href=mailto:will@hellacool.co.uk>will@hellacool.co.uk</a><br><a href= test site</a><br>