如:
select case (sex)
case 1
sex="男"
case 2
sex="女"
end select case
---------------------------------------
---------------------------------------
補充:
比如妳現在已經從數據庫讀取了ry_jbxx的數據並儲存到rs記錄集中了。性別為sex,職業為career,籍貫address。
dim sex,career,address
select case (rs("sex"))
case 1
sex="男"
case 2
sex="女"
end select case
select case (rs("career"))
case 10
career="工人"
case 20
career="職員"
case 30
career="幹部"
case 40
career="無業"
end select case
select case (rs("address"))
case 3201
address="江蘇南京"
case 6532
address="新疆和田"
case 1101
address="北京"
end select case
'''''''調用數據時,直接調用sex、career、address就行了,而不是調用rs("sex")、rs("career")和rs("address")了