TaBliz Adding Records


The AddNew Method and the Edit Form

AddNew Method generates an Edit Form ready for data input. So, to build an HTML interface for data input you just need to write this code.

dim TBLZ
Set TBLZ = Server.CreateObject("Tabliz.AdminRecordset")
TBLZ.DatabasePath = "C:\MyPath\MyAccessDB.mdb"
TBLZ.recordset = "TheTable"
TBLZ.AddNew

The generated form is very raw. In order to customize it you need to set the EditForm’s parameters. For Example if you want to modify the caption on the button you have to write the following line before to call the AddNew method.

TBLZ.EditForm.ButtonAddCaption = "Add this funny record"

Similar to activate the client side validation scripts for required fields you need to write the following line before to call the AddNew method:

TBLZ.EditForm.Scripts.CheckRequired = true

See Also