|
-
Nov 8th, 2000, 01:49 PM
#1
Thread Starter
New Member
Hi,
I figured out how do display an individual record from a database. I CANT FIGURE OUT HOW TO SHOW ALL THE RECORDS IN THE SAME WAY!Private
Sub cmdGet_Click()
Dim sName As String
sName = InputBox$("Please enter your name:")
Set RS = DB.OpenRecordset("SELECT * FROM Contact WHERE Name = '" & sName & "'", dbOpenDynaset)
txtName = "" & RS!Name
txtPhone = "" & RS!Phone
txtNotes = "" & RS!Notes
RS.Close
End Sub
Help!
Aknighter
-
Nov 8th, 2000, 02:00 PM
#2
Hyperactive Member
Try a grid instead of a text box. Set your grid's datasource to your recordset using ado and you're good to go!
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
|