On Wed, 28 May 2008, Dave Coventry wrote: > Sorry, > > I should have been more specific.... > > SQLQuery1.SQL.Text:='SELECT fname, > sname,id,comboboxcourse,studentnumber,enquirydate,enquiryreferencenumber > from registration WHERE fname=''Dave'''; Are you sure the query is closed at this point ? If not, then you'll get this error. Michael.