I have a table with 200 fields named F001 through F200
and a form to collect data for those fields. I need to
execute an event procedure On Exit to do a conversion ie.
Expand|Select|Wrap|Line Numbers
- Private Sub F001_Exit(Cancel As Integer)
- If Me![F001].Value = "1" Then
- Me![F001].Value = "A"
- ElseIf Me![F001].Value = "2" Then
- Me![F001].Value = "D"
- ElseIf Me![F001].Value = "3" Then
- Me![F001].Value = "U"
- End If
- End Sub
procedure so that one procedure will work for all
fields (F002, F003, ... F200) so I can copy and paste
the procedure rather than replace the field name in
each of the 200 fields ie. instead of using
Me![F00x].Value is there a reference to the current
field that would work in all the fields?
Any suggestions will be greatly appreciated.