how to recode from text to number in access

G

Guest

I have a data field 'Gender' and it has male and female as the variables. i
want to convert them into numerical codes i.e. male = 1, female = 2, in
access. How do I go about it?

Gabriel
 
V

Van T. Dinh

* Create a new Field NewGender of numeric data type (of Byte size).
* Use an Update Query to assign value 1 or 2 to this Field for each Record
depending on the value of the Field Gender.
*Once the update is done and checked OK, delete the old Field Gender and
rename the Field NewGender to Gender.
 

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