G
Guest
I am self taught but I am a strong excel user which has helped me immensely.
I can read much VB but cannot write in it. My problems is that I have a
table that has a field that is alphanumeric and stored as text. I am using a
query that pulls the information using the Format([table.field],"0000") to
get all responses to 4 characters. The query works fine for most of the data
but there are instances where it seems to be converting the text to a number
or dropping all of the information completely and returning 0000 in the
field. The instances where it is converting the information to numbers is
where a dash (-) is used, i.e for 27-1 it returned 39109. For the instances
it return 0000 the data was either 010A, 001A, (space)1(space)A or
(space)10A. Is the problem in the Format function? What can I do different
to prevent this from happening?
I can read much VB but cannot write in it. My problems is that I have a
table that has a field that is alphanumeric and stored as text. I am using a
query that pulls the information using the Format([table.field],"0000") to
get all responses to 4 characters. The query works fine for most of the data
but there are instances where it seems to be converting the text to a number
or dropping all of the information completely and returning 0000 in the
field. The instances where it is converting the information to numbers is
where a dash (-) is used, i.e for 27-1 it returned 39109. For the instances
it return 0000 the data was either 010A, 001A, (space)1(space)A or
(space)10A. Is the problem in the Format function? What can I do different
to prevent this from happening?