WebDB Frequently Asked Questions

What is WebDB?

A program. written in Visual Basic 6, that will quickly create a group of ASP pages for learning purposes.

What files are created and what do they do?

See the ReadMe.txt file that the program creates for details.

How do I create a group of ASP pages using WebDB?

Run the program. Type in the name of a table you want to create - typically, it is something you want to keep up with like, books, members, elephants, etc. Type in the number of fields you want for each record. Change the name of the Image File Name, if you want to use an image. Then, type in the names of the fields you want to use, and press the TAB key to move to the next field. After you enter the field names, click the CREATE ASP FILES button.

How to I get it running on a Web Server?

Upload the files to a Web server that supports ASP pages. Upload a blank Access database file named db.mdb to your Web server. Set permissions on the db.mdb file to allow the Internet Guest Account to have full write access. Point your browser to the XXXXX-Main.asp page (XXXXX is the name of the table). Click the link "Add new XXXXX table to db.mdb" to create your table. Then, click the "Edit XXXXXs" link. Then, click ADD to add records.

What if I get an error?

Be careful not to use field names that are key words in VBScript like NAME, TIME, etc. Many people use naming conventions like bkTitle, bkAuthor, etc. so that you will not inadvertently use a VBScript keyword. If you get an error, try re-running WebDB and name your fields using a three character prefix to each field name, such as eleName, eleTime, etc.

Also, if a user enters a quote or apostrophe in a field, since the program does not write code to catch this error, you can get an error related to the SQL statement not being properly formatted.

How can I learn the code?

The best way to understand the code that WebDB generates is to:

Where can I download WebDB?

Click this download link and unzip the file.