--- title: "AddNew Method Example (VBScript) | Microsoft Docs" ms.prod: sql ms.prod_service: connectivity ms.technology: connectivity ms.custom: "" ms.date: "01/19/2017" ms.reviewer: "" ms.topic: conceptual dev_langs: - "VB" helpviewer_keywords: - "AddNew method [ADO], VBScript" ms.assetid: dcdcaf0a-b9b0-4d81-8728-43c38c4c853b author: MightyPen ms.author: genemi --- # AddNew Method Example (VBScript) This example uses the [AddNew](../../../ado/reference/ado-api/addnew-method-ado.md) method to create a new record with the specified name. Use the following example in an Active Server Page (ASP). Use **Find** to locate the file Adovbs.inc and place it in the directory you plan to use. Cut and paste the following code to Notepad or another text editor, and save it as **AddNewVBS.asp**. You can view the result in any client browser. To exercise the example, add a new record in the HTML form. Click **Add New**. See the [Delete Method Example](../../../ado/reference/ado-api/delete-method-example-vbscript.md) to remove unwanted records. ``` <%@Language = VBScript %> <%' use this meta tag instead of adovbs.inc%>
| Customer ID | Company Name | Contact Name | Phone Number | City | State/Province |
|---|---|---|---|---|---|
| " & rsCustomers("CustomerID") & " | ") Response.Write("" & rsCustomers("CompanyName")& " | ") Response.Write("" & rsCustomers("ContactName") & " | ") Response.Write("" & rsCustomers("Phone") & " | ") Response.Write("" & rsCustomers("City") & " | ") Response.Write("" & rsCustomers("Region") & " | ") Response.Write("