Modifying Standard Fields with Database Designer
By default Database Designer, the tool for creating, modifying
and deleting custom fields, does not allow you to modify standard fields. However there are times
one would like to modify the definition of the standard fields of Excel Invoice
Manager.
For example, you may like to expand the size of the Product Name (Product Description)
field. This document explains how to do this.
- Download the ModifyingStandardFields.zip file.
- Unzip the file you download.
- Double-click ModifyingStandardFields.reg to import it into Windows registry.
(Click to enlarge)
- Exit Microsoft Excel if it is running.
- Start Database Designer. You can find it on: Windows
Start menu -> (All) Programs ->
OFFICE-KIT.COM -> Excel Invoice Manager
-> Database Designer.
- Click Next.
- Click Open Database Definition File. By default database
definition file is stored in the same folder where you store your database file.
Database definition file is always named as "FDINFO10.rst". For more information about
how Excel Invoice Manager stores files, please see
Installing / Upgrading.
- Click Backup to backup your database definition file.
This helps you to restore to a working version in case it is damaged.
- Click Next.
- Check Display Standard Fields.
- Click Product in the Tables list.
- Click ProductName in the Columns/Fields list.
(Click to enlarge)
- Click Modify Field.
- Modify the size as you need. For example you can set the size to 255 (the max allowed size) if
you need more space to store your product descriptions.
(Click to enlarge)
- Click OK.
- Since the ProductName field needs to be stored in the
Invoice Body table too, you now click the
Invoice Body table in the Tables list.
- Click ProductName in the Columns/Fields list.
- Click Modify Field. Set the size to the same as you do for the
Product table.
- Click Save to save the modified database definition file.
- Click Next.
- Click Select database file to open your database file.
- Backup the database file.
- Click Apply.
- Click Finish to exit Database Designer.
Please note in this example you need to modify the validations of the invoice template too,
in order to make the template allow more text to be entered into the Product Description (ProductName)
cells. To do this:
- Open your invoice template.
- Unprotect the Invoice worksheet. (How?)
- Drag your mouse to select all Product Description cells.
- In Excel 2000/XP/2003, click Excel menu Data -> Validation.
- Set the Maximum value to the size of the
ProductName field, say 255.
(Click to enlarge)
- Protect the Invoice worksheet again. (How?)
Note:
- You cannot delete standard fields with Database Designer.
|