--- title: "Move 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: - "Move method, VBScript example" ms.assetid: 29ec4b95-8986-4970-943f-3da3ecb207a2 author: MightyPen ms.author: genemi --- # Move Method Example (VBScript) This example uses the [Move](../../../ado/reference/ado-api/move-method-ado.md) method to position the record pointer, based on user input. Use the following example in an Active Server Page (ASP). To view this fully functional example, you must either have the data source AdvWorks.mdb (installed with the SDK) located at C:\Program Files\Microsoft Platform SDK\Samples\DataAccess\Rds\RDSTest\advworks.mdb or edit the path in the example code to reflect the actual location of this file. This is a Microsoft Access database file. 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 **MoveVBS.asp**. You can view the result in any browser. Try entering a letter or noninteger to see the error handling work. ``` <%@ Language=VBScript %> <%' use this meta tag instead of adovbs.inc%>
| Company Name | Contact Name | City |
| <%= rsCustomers("CompanyName")%> | <%= rsCustomers("ContactName")%> | <%= rsCustomers("City")%> |