|
-
Jun 3rd, 2003, 11:20 AM
#1
Thread Starter
Hyperactive Member
Reading from Database
I got this so far:
VB Code:
Set DB = OpenDatabase(App.Path & "\Stilo.mdb")
'Open the Contact table
Set RS = DB.OpenRecordset("SELECT * FROM Contact WHERE # = '" & 5 & "'")
What do i do next?
How do i read the value to a textbox?
-
Jun 3rd, 2003, 11:56 AM
#2
Fanatic Member
Re: Reading from Database
Originally posted by Stiletto
I got this so far:
How do i read the value to a textbox?
[/Highlight]
Not clear ,
u mean write to textbox
-
Jun 3rd, 2003, 11:59 AM
#3
Thread Starter
Hyperactive Member
i'm using ADO.
How can i read the fields and write it to a textbox (or label...whatever)
-
Jun 3rd, 2003, 12:09 PM
#4
Fanatic Member
Originally posted by Stiletto
i'm using ADO.
How can i read the fields and write it to a textbox (or label...whatever)
Ado or dao does not matter ,
u will be creating a recordset as in this case ,
text1 = RS!fieldname
or
text1 = RS.fields("fieldname").
u have 1605 posts to your name , what were they related to !! just curious
-
Jun 3rd, 2003, 12:19 PM
#5
Thread Starter
Hyperactive Member
lol.
Many things, but i'm new to all the database things...
-
Jun 3rd, 2003, 12:30 PM
#6
Thread Starter
Hyperactive Member
hmmm
I had this b4:
VB Code:
frmMain.Text5.Text = "" & RS!Artist
Wwhat is the blank space for?
-
Jun 3rd, 2003, 12:36 PM
#7
Fanatic Member
Re: hmmm
Originally posted by Stiletto
I had this b4:
VB Code:
frmMain.Text5.Text = "" & RS!Artist
Wwhat is the blank space for?
frmMain.Text5.Text = "" & RS!Artist
or
frmMain.Text5.Text = RS!Artist
doesn't make any difference
-
Jun 3rd, 2003, 12:37 PM
#8
Hyperactive Member
it does nothing. Get rid of it.
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
|