JeffCurtis
Programmer
Hello;
I am needing to use a variable to reference a particular field name. Depending on the variable Value I want to be able to decide which field to read in.
Database:
Pigment# Red Blue Green
501 5 6 2
505 7 5 3
507 7 1 4
For Example, if the Current variable Color = "Red"
if rs1![Pigment] = "501" then
Amt = rs1[Color] ' At this moment = "Red"
end if
Amt = 5
This seems like a real basic question....but I'm pulling my hair out
to figure it out...Any ideas...Thanks...jch
I am needing to use a variable to reference a particular field name. Depending on the variable Value I want to be able to decide which field to read in.
Database:
Pigment# Red Blue Green
501 5 6 2
505 7 5 3
507 7 1 4
For Example, if the Current variable Color = "Red"
if rs1![Pigment] = "501" then
Amt = rs1[Color] ' At this moment = "Red"
end if
Amt = 5
This seems like a real basic question....but I'm pulling my hair out
to figure it out...Any ideas...Thanks...jch