|
-
Dec 4th, 2012, 10:57 AM
#1
Thread Starter
Lively Member
SQL in VB
Hi,
In my program i select a value from a database i.e
select name_f from owner where owner_id=text10.text
What i need to do is:
for each name_f
select employed from employment where name=name_f(name from previous sq query)
Does anyone know how to implement this in vb? I am new to VB and using VB5.
What i have so far is :
Dim sqll As String
DimRecords As Recordset
sqll = "select name_f from owner where owner_id='" & Text10.Text & "'"
Set Records = aphiscon.OpenRecordset(sSQL, dbOpenSnapshot)
I would appreciate any help with this.
Thanks
Tags for this Thread
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
|