I have a table that I scan rows then,the columns to match a column header with a variable. Once the column has been found with correct header, I want to change the value of the cell in that row.
This is my sample With statement to do this:
With rsMyRS
.Edit
!EmailList = True
.Update
End With
EmailList is the column header and I am setting the value of this cell to be 'True'
This is my problem how do I do this with the column header name stored in a variable. I have to use a variable because I have many possible column headers. So I need something generic.
Thanks for your help.
This is my sample With statement to do this:
With rsMyRS
.Edit
!EmailList = True
.Update
End With
EmailList is the column header and I am setting the value of this cell to be 'True'
This is my problem how do I do this with the column header name stored in a variable. I have to use a variable because I have many possible column headers. So I need something generic.
Thanks for your help.