strsql2 = "SELECT label.validcode FROM variablen AS s INNER JOIN label ON s.id=label.variablenid WHERE varname='astrFields(intIx)';"
Set db = OpenDatabase("C:\Documents and Settings\TAYYAPP\Desktop\GIDAS_Codebook.mdb")
Set rs2 = db.OpenRecordset(strsql2)
With rs2
.MoveLast
.MoveFirst
astrvalidcodes = rs2.GetRows(.RecordCount)
'.Close ' assuming you want to do this
End With
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.