Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.

Modify Access Data Online

In the previous data basics column, we showed you how to retrieve data from an access table over the Web using ASP scripts. Retrieving and viewing data are just two of the tasks that you will need in an interactive database application. Now we are going to venture into making database changes online, using HTML forms and ASP scripts to insert new data and modify and delete existing information. We will assume that you have gone through the steps in the prior lesson and have installed a server, created a shared directory \inetpub\wwwroot\sample containing the Northwind database, and established a DSN connection to it.

The examples that follow will use seven more sample files. As in the previous lesson, you should create each one by copying and pasting the code into Notepad and saving it with the indicated filename in your \inetpub\wwwroot\sample directory.

  1. insert_from.html
  2. insert.asp
  3. amend_select.asp
  4. amend_change.asp
  5. amend.asp
  6. delete_select.asp
  7. delete.asp

Form function

Most of these samples operate by sending HTML forms to the browser. Formscollect data from the user to send to programs on the server, in this case our ASP scripts. The <form></form>element's action attribute indicates the URL of the server program that will receive the data. How the data is sent depends on the method attribute: post passes the data invisibly, while get appends the data in the server program's URL. After the data is processed, the server program sends a result page back to the browser.

A collection of controls (also called fields or inputs) contains the form's data. Control elements include <input />, <select>, <textarea> and others. Depending on the type of control, a user may freely enter its data or select a value from limited options. Some inputs even have fixed values and are present just to pass information from one server program to the next. Each control has a name attribute used to label its data when sent to the server.

Click Next for inserting-data

Share:

No comments:

Post a Comment

Translate



PageRank
Your email address:

Delivered by FeedBurner

Search

Infolinks Text Ads

blog.feedspot.com Microsoft Access Blogs

Popular Posts

Search This Blog

Blog Archive

Powered by Blogger.

Labels

Forms How Tos Functions MS-Access Security Reports msaccess forms Animations msaccess animation Utilities msaccess controls Access and Internet MS-Access Scurity MS-Access and Internet Queries External Links msaccess reports msaccess tips Accesstips Menus and Toolbars MsaccessLinks Process Controls Art Work Downloads msaccess How Tos Graph Charts msaccessQuery Array List Boxes Command Buttons Emails and Alerts Query Combo Boxes Custom Wizards DOS Commands Data ms-access functions msaccess functions msaccess graphs msaccess reporttricks Calculation msaccessprocess security advanced Access Security Custom Functions Data Type Macros Menus Property Report Top Values VBA Variables msaccess email msaccess menus progressmeter Access2007 Auto-Number Command Button Copy Field Type Fields Form Join Microsoft Numbering System Objects Records Security Split SubForm Table Utility Workgroup database msaccess wizards Access2003 Accounting Year Action Animation Attachment Binary Numbers Bookmarks Budgeting ChDir Class Module Color Palette Conditional Formatting Controls Data Filtering Defining Pages Diagram Disk Dynamic Lookup Error Handler Excel Export Expression External Filter Form Instances Formatting Groups Hexadecimal Numbers Import Labels List Logo Macro Mail Merge Main Form Memo Methods Monitoring Object Reference Octal Numbers Operating System Paste Primary-Key Product Rank Reading Recordset Rich Text Sequence SetFocus Summary Tab-Page Tables Time Difference Union Query User Users Water-Mark Word automatically commands function hyperlinks iSeries Date iif ms-access msaccess msaccess alerts pdf files reference restore switch text toolbar tutorial updating upload vba code

Featured Post

Ms-Access VBA Class Object Arrays

Last Week we had a brief introduction of a simple Custom Class Object with only two Variables, for Length and Width Values. A Method for ...

Labels

Blog Archive

Recent Posts