可能是在你打开这个tdatabase之前你就访问了数据库,你可以把tdatabase的autoconnect设置为true,要使访问数据库的语句在formcreate中