Var in Field Name

C

Chris B

I am trying to pass a varible and use it in a field name
that is to be set. The field names are FLD_NA,
FLD_NB,...FLD_NZ. What I want to do is pass it a single
letter like "C" and use it something like FORMS!Orders!
FLD_N & "C" = 100. HELP!

Chris
 
D

Dirk Goldgar

Chris B said:
I am trying to pass a varible and use it in a field name
that is to be set. The field names are FLD_NA,
FLD_NB,...FLD_NZ. What I want to do is pass it a single
letter like "C" and use it something like FORMS!Orders!
FLD_N & "C" = 100. HELP!

Chris

Dim strFieldSuffix As String

strFieldSuffix = "C"

Forms!Orders.Controls("FLD_N" & strFieldSuffix) = 100
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top