Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

SQL in VB

$
0
0
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

Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>