Well, for one, this line is has a few problems.
when this renders to the browser it will look like this:
So, basically, you're not naming your checkboxes "cb&NUMBER". You are naming them all "cb" but with some random characters between properties.
You are also trying to set ASP server-side code as the value for the checkbox. You need to put the tabla.Fields("codigo") call between the ASP brackets.
If you want to name all of your boxes "cb", then that's fine. You can just loop through the collection and figure out all of the values.
If you are trying to include that number in the name, then you would want to do something like:
Each of your checkboxes will then be named "cb&1", cb&2", cb&3" and so on. If you don't want the ampersand in there, then just take it out. Your checked checkboxes will also have a value now.