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?
Printable View
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?
Not clear ,Quote:
Originally posted by Stiletto
I got this so far:
How do i read the value to a textbox?
[/Highlight]
u mean write to textbox
i'm using ADO.
How can i read the fields and write it to a textbox (or label...whatever)
Quote:
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 ;)
lol.
Many things, but i'm new to all the database things...:)
I had this b4:
Wwhat is the blank space for?VB Code:
frmMain.Text5.Text = "" & RS!Artist
frmMain.Text5.Text = "" & RS!ArtistQuote:
Originally posted by Stiletto
I had this b4:
Wwhat is the blank space for?VB Code:
frmMain.Text5.Text = "" & RS!Artist
or
frmMain.Text5.Text = RS!Artist
doesn't make any difference
it does nothing. Get rid of it.