Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.


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.


No comments:

Post a Comment


Your email address:

Delivered by FeedBurner


Popular Posts

Search This Blog

Blog Archive

Powered by Blogger.


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 Array MsaccessLinks Process Controls Art Work Downloads msaccess How Tos Graph Charts msaccessQuery Class Module List Boxes Property Combo Boxes Command Buttons Emails and Alerts Query VBA Calculation Custom Wizards DOS Commands Data Data Type Objects ms-access functions msaccess functions msaccess graphs msaccess reporttricks msaccessprocess security advanced Access Security Collection Object Custom Functions Field Type Form Macros Menus Object Reference Report Top Values Variables msaccess email msaccess menus progressmeter Access2007 Auto-Number Command Button Controls Copy Expression Fields Form Instances Join Methods Microsoft Numbering System Records Recordset Security Split SubForm Table Utility Workgroup database msaccess wizards 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 Rich Text Sequence SetFocus Summary Tab-Page Tables Time Difference Union Query User Users Water-Mark Word Wrapper Classes 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

Table Records in Collection Object and Form

Data records from a Table will be Add ed as the Collection Object Items and Description field values goes into the Collection Object as Ke...


Blog Archive

Recent Posts