Roman Numeral

  • Thread starter T5925MS via AccessMonster.com
  • Start date
T

T5925MS via AccessMonster.com

I have a text field that contains roman numerals. Why does my report convert
that roman numeral to a number when I concatenate it with other fields?
 
M

Marshall Barton

T5925MS said:
I have a text field that contains roman numerals. Why does my report convert
that roman numeral to a number when I concatenate it with other fields?


Because the field's value really is a number? This could
happen if the field is a lookup field.

It would help if you could figure out how you are getting a
roman numeral when you do not concatenate it. Maybe it
would also be useful to know where/how the roman numeral is
entered into the field.
 
T

T5925MS via AccessMonster.com

When I put the field in by itself, RomanNumeral vs =[RomanNumeral], it does
not convert it to a number. Also, I enter roman numerals into each field
manually, i.e. IX or XIII etc. Thanks for your response.
 
M

Marshall Barton

That's a real head scratcher. I Never heard of such a thing
without using some code (in the section's Format or Print
event) to explicitly convert it. Maybe that's some kind of
new feature in A2007, if that's what you are using?? What
does the text box have in its Format property?

Have you tried to put a break point in the Format/Print
event to see what Access thinks the value of the field and
control is?
--
Marsh
MVP [MS Access]

When I put the field in by itself, RomanNumeral vs =[RomanNumeral], it does
not convert it to a number. Also, I enter roman numerals into each field
manually, i.e. IX or XIII etc.

Marshall said:
Because the field's value really is a number? This could
happen if the field is a lookup field.

It would help if you could figure out how you are getting a
roman numeral when you do not concatenate it. Maybe it
would also be useful to know where/how the roman numeral is
entered into the field.
 
T

T5925MS via AccessMonster.com

I'm using A2007. I just realized that it's not converting the roman numeral
to a number. When I put the field in as =[AdminProgCriteriaRomanNumber]
rather than AdminProgCriteriaRomanNumber, the result is the value of another
field called AdminProgNumber. And, it doesn't do this on any other report in
my database, only this report! I value any suggestions.

Marshall said:
That's a real head scratcher. I Never heard of such a thing
without using some code (in the section's Format or Print
event) to explicitly convert it. Maybe that's some kind of
new feature in A2007, if that's what you are using?? What
does the text box have in its Format property?

Have you tried to put a break point in the Format/Print
event to see what Access thinks the value of the field and
control is?
When I put the field in by itself, RomanNumeral vs =[RomanNumeral], it does
not convert it to a number. Also, I enter roman numerals into each field
[quoted text clipped - 10 lines]
 
M

Marshall Barton

T5925MS said:
I'm using A2007. I just realized that it's not converting the roman numeral
to a number. When I put the field in as =[AdminProgCriteriaRomanNumber]
rather than AdminProgCriteriaRomanNumber, the result is the value of another
field called AdminProgNumber. And, it doesn't do this on any other report in
my database, only this report!


Check the control names for both fields, maybe you got those
mixed up too.

IF that has something to do with it, then its an argument in
favor of renaming controls so they are not the same as a
field name.
 
T

T5925MS via AccessMonster.com

Problem solved! You were right. The control names were the same. Once I
ensure they were different, it displayed the correct values. Great suggestion
about making control names different than field names.Thanks for your help!

Marshall said:
I'm using A2007. I just realized that it's not converting the roman numeral
to a number. When I put the field in as =[AdminProgCriteriaRomanNumber]
rather than AdminProgCriteriaRomanNumber, the result is the value of another
field called AdminProgNumber. And, it doesn't do this on any other report in
my database, only this report!

Check the control names for both fields, maybe you got those
mixed up too.

IF that has something to do with it, then its an argument in
favor of renaming controls so they are not the same as a
field name.
 

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