Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.

example3 asp

Example3 ASP

Paste this code into a file and save it as example3.asp in your sample folder.

<html>
 <body>
 <%Set Conn = Server.CreateObject("ADODB.Connection") 
 Conn.Open "NorthwindDSN" 
 Sql = "SELECT LastName, FirstName FROM Employees " 
 Set rst = Conn.Execute(Sql) 
 If rst.EOF Then  
   Response.Write "No employee records available"
   Conn.Close
   Set Conn=Nothing
   Response.End 
End If %> 
 <table border="1">
 <caption align="top">Employee List from Northwind. Demo </caption>
 <tr>  <th>Last Name </th>  <th>First Name </th>  </tr>
 <%Do While Not rst.EOF%> 
    <tr bgcolor="#00FFFF">  <td>  <%=rst("LastName")%>  </td>  <td>  <%=rst("FirstName")%>  </td>  </tr> 
  <%rst.MoveNext 
Loop 
Set Conn = Nothing 
Set rst = Nothing %> 
 </table> 
 </body>
 </html> 

Go to Main Page

  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 subject to moderation before publishing.

PRESENTATION: ACCESS USER GROUPS (EUROPE)

Translate

PageRank

Post Feed


Search

Popular Posts

Blog Archive

Powered by Blogger.

Labels

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