When opening protected database tables you need to provide a password and perhaps an additional key. There are three ways to do this.
1. Set the Password and Key property of TTdbTable before you call the Open method:
MyTdbTable.Password := 'MyPwd';
MyTdbTable.Key := '897461';
MyTdbTable.Open;
2. Specify an even handler for TTdbDatabase.OnPassword. This event handler will be called, when TurboDB is not able to open a database table due to protection. You can provide a password and a key within this event handler.
3. Include the unit TdbPwdDlg into your project. This unit contains a simple password dialog, which will register with the database access components and show up each time a password/key combination is required. This password dialog is the one, which is also used at design-time.