G
Guest
I need to search throug a Table (both fields and records) that contains a variable name. The Field or Record to go to is unknown. It is calculated. So it comes up with I need the contents of record QXZ172426, Field rst!WN09. How do I get the contents of rst!WN09? I can make it work in ASP and VB6, but not VBA
Example I have a Field in a Table names rst.WN0
Dim db As Databas
Dim rst As Recordse
Dim ChkByte As Byt
Dim wrkIndx As Byt
Dim HoldIt As Strin
Dim WNWN As Byt
Set db = CurrentD
Set rst = db.OpenRecordset("SELECT * FROM UNIVREC"
Do Until rst.EO
wrkIndx =
For wrkIndx = 1 To 2
If wrkIndx < 10 The
HoldIt = "WN0" & wrkInd
Els
HoldIt = "WN" & wrkInd
End I
WNWN = (rst!(= HoldIt)) ' This is where my problem is . WNWN should be 0 or a number from 1 to 129.
MsgBox WNW
Nex
Loo
Been trying for several weeks now. Can this be done
Thanx in Ad
Le
Example I have a Field in a Table names rst.WN0
Dim db As Databas
Dim rst As Recordse
Dim ChkByte As Byt
Dim wrkIndx As Byt
Dim HoldIt As Strin
Dim WNWN As Byt
Set db = CurrentD
Set rst = db.OpenRecordset("SELECT * FROM UNIVREC"
Do Until rst.EO
wrkIndx =
For wrkIndx = 1 To 2
If wrkIndx < 10 The
HoldIt = "WN0" & wrkInd
Els
HoldIt = "WN" & wrkInd
End I
WNWN = (rst!(= HoldIt)) ' This is where my problem is . WNWN should be 0 or a number from 1 to 129.
MsgBox WNW
Nex
Loo
Been trying for several weeks now. Can this be done
Thanx in Ad
Le