|
-
Jun 5th, 2000, 03:47 AM
#1
Thread Starter
Member
HELP (VB)
OK we are using ADO here,
I need to search in a table to find some data.
For example locate a customer ID, then also retrieve the customer firstname, last name etc,
Thanks )
-
Jun 5th, 2000, 05:36 AM
#2
Frenzied Member
Dim g_Db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim sTmp As String
Dim sQry As String
sTmp = "File Name=" & App.Path & "\Database.UDL"
g_Db.Open sTmp
sQry = "select firstname, lastname from table where customerid='" & Trim(form.textfield) & "'"
rs.Open sQry, g_Db
[Edited by JHausmann on 06-05-2000 at 06:39 PM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|