Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.

MS-ACCESS AND INTERNET

Courtesy: All Articles on Microsoft Access and Internet are indebted to Susan Sales Harkins and Martin W.P.Reid

The following article with examples illustrates how to use Microsoft Access Database in internet. The example ASP Codes (or your Project for Internet) can be tried out on Local machine itself after installing a Personal Web Server (Windows 98) or Internet Information Services (Windows 2000) on your PC.


Install the local server

The first step is to install Personal Web Server or Internet Information Services, so skip to the next page if a server is already installed. PWS is a desktop Web server that allows you to connect to a network and share data. The example ASP files will use your system's server (PWS or IIS) to simulate downloading data from the internet, but that data will really be on your local system.


To install PWS on Windows 98:

  1. Insert your Windows 98 install disc in your CD-ROM drive.
  2. Click the Start button on the taskbar and choose Run.
  3. Enter the statement x:\add-on\pws\setup.exe

    where x represents your CD-ROM drive letter. Click OK.

  4. Click Next after reading the welcoming message.
  5. Click the Add/Remove button.
  6. Make sure the following items are checked:
    • Common Program Files, FrontPage 98,
    • Server Extensions,
    • Microsoft Data Access Components 1.5,
    • Personal Web Server (PWS),
    • and Transaction Server.
  7. Then click Next.
  8. When prompted, click Finish to complete the installation. Then restart your computer.


To install IIS on Windows 2000:

  1. Insert your Windows 2000 install disc in your CD-ROM drive.
  2. Click Install Add-on Components.
  3. Check the Internet Information Services(IIS) item and click Next. You can expect to wait a few minutes while Windows completes the process.
  4. When windows displays the Windows Components Wizard dialog box, click Finish.
  5. Select Exit in the Microsoft Windows 2000 CD dialog box.

After installing PWS or IIS, open Windows Explorer and locate a new folder named inetpub on your local drive. C:\inetpub is the most likely location. Open this folder to find the wwwroot subfolder, otherwise known as the Web root. All subfolders and the files within wwwroot will be accessible via the Web. Initially there will be only two files in this folder, default.asp and global.asp, but this article doesn't deal with them.

A known bug installing PWS

You may encounter an error when installing the Transaction Server on Windows 95 and 98 systems. For complete information, read the Knowledge Base Article at Microsoft's site or follow these instructions:

  1. Create a temporary folder named \Temp on your local hard drive.
  2. Insert your Windows 98 install CD and copy the complete contents of x:add-ons\pws\ to \Temp.
  3. Download mtssetup.exe from the knowledge Base page.
  4. Execute mtssetup.exe by double-clicking it, extract Mtssetup.dll to \Temp, and confirm the overwrite process.
  5. In \Temp, double-click setup.exe to begin the installation process. Follow the PWS instructions above.

After installing PWS or IIS, you should create a new folder to store the database and ASP files that you'll execute in order to retrieve data from that database. Create the new folder in \inetpub\wwwroot and name it sample. Then copy the Northwinds sample database that comes with Access into this new folder. You'll find the Northwind.mdb file in \Program Files\Microsoft Office\Office\Samples. If you can't locate Northwind.mdb., use the Windows Find feature or insert your Office CD and install it.

By default, a folder won't share files. So after you've created the sample folder, right-click its icon in Windows Explorer, select Properties, the click the Web Sharing tab. Select the Share This Folder option and click OK. Now Windows will allow you to share the files within this folder on a network.

Click Next for example .asp files.

  1. Installing the Personal Web Server (PWS)
  2. or Internet Information Services (IIS)
  3. Create the Example ASP Files
  4. Create a DSN Connection
  5. Connect to the Database
  6. Modify Access Data Online
  7. Inserting Data
  8. Modifying Data
  9. Deleting Data
  10. Data Insert Form
Share:

No comments:

Post a Comment

Comments are subject to moderation before publishing.

Translate



PageRank
Subscribe in a reader
Your email address:

Delivered by FeedBurner

http://clicky.com/101199826
Blog Directory Visit blogadda.com to discover Indian blogs

Search

Popular Posts

Search This Blog

Blog Archive

Powered by Blogger.

Follow by Email

Labels

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

Featured Post

WithEvents and All Form Control Types

Introduction So far we have worked extensively with only one type of Control: the TextBoxes on Form, enabled with Events to Raise and captur...

Labels

Blog Archive

Recent Posts