Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving Value from database table using Database and RecordSet

Status
Not open for further replies.

zzzqqq

Programmer
Oct 12, 2005
17
IE
Hi,
Anyone know how to retrieve the actual table value after these steps? New to vb and finding it difficult to figure this out?

Dim dbs As Database
Dim rst As Recordset
Dim strSQL As String
Dim strRequestNo As String
Dim retVal
Dim checker As Integer
Dim ReqNo, stDocName As String
Dim stLinkCriteria As String
Dim imvProject As String

Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblFisSection", dbOpenDynaset)

strSQL = "Select ivmProject from tblFISSection where RequestNo =" & RequestNo
Set rst = dbs.OpenRecordset(strSQL)

Any idea how I retrieve the ivmProject value?
Mark.
 
imvProject = rst!ivmProject

Ed Metcalfe.

Please do not feed the trolls.....
 
how are ya zzzqqq . . .
Code:
[blue]   rst("ivmProject")[/blue]
or if [blue]ivmProject[/blue] resides in a variable:
Code:
[blue]   rst([purple][b]VariableName[/b][/purple])[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top