G
Guest
I'm noticing strange behavior with a calculated field in Access 2003. I'm
making a select query that summarizes a table. The table has a column for
each of the two formats of ID numbers that our system has used - one from the
old system and one from the new system. So for each record, only one of the
two fields with have data. The calculated field just checks to see if the
first field is null and then uses returns the one that isn't.
The problem I'm having is that sometimes the returned value on one of the
fields excludes the first digit in the ID number. The format for this field
is "A99999", with the nines being numbers and the "A" being a letter.
The strangest thing is that the error seems to be dependant upon the name of
the calculated field. When it didn't work at first, I started trying
different variations on the formula. It finally worked when I changed the
name of the field to "test". Then I changed the name back to "RefNum" and it
stopped working. I changed it back to "test" and it worked again. But then,
I closed the query, reopened it and it had stopped working again.
making a select query that summarizes a table. The table has a column for
each of the two formats of ID numbers that our system has used - one from the
old system and one from the new system. So for each record, only one of the
two fields with have data. The calculated field just checks to see if the
first field is null and then uses returns the one that isn't.
The problem I'm having is that sometimes the returned value on one of the
fields excludes the first digit in the ID number. The format for this field
is "A99999", with the nines being numbers and the "A" being a letter.
The strangest thing is that the error seems to be dependant upon the name of
the calculated field. When it didn't work at first, I started trying
different variations on the formula. It finally worked when I changed the
name of the field to "test". Then I changed the name back to "RefNum" and it
stopped working. I changed it back to "test" and it worked again. But then,
I closed the query, reopened it and it had stopped working again.