#Error in calculated field

G

Guest

I'm trying to put a calculated field in a report but I get a #Error message.
If I display the fields I get a blank and a value. The 'Vacation Days Used'
field is blank (or Null or something). The VacationSum field has a value in
it. Is this caused from trying to add a Null with a numeric value? And if
so, how to I get around it?
 
G

Guest

If I display the fields I get a blank and a value. The 'Vacation Days
Used' field is blank (or Null or something).
Your statements are contradictory -- Blank has no value - Something is not
blank.
Post your calculation.
 
G

Guest

I'm adding 2 fields: =[vacation used]+[vacationsum]

[vacation used] was defined as a text field on the record I'm taking it
from. How do I get it usable in an equation? The other field [vacationsum]
works fine. It was created as a numeric field. I've tried redefining the
record fields but it's not helping.
 
L

Linq Adams via AccessMonster.com

What would sample data look like in the [vacation used] field? You're not
trying top get your target textbox to look like

Vacation Days Used 6

or some such, are you?
 
M

Mike Mueller

You cannot add a string to a number. You would need to use the VAL function
on the string to convert to a number
eg vacRemaining = val([vacEarned]) - vacUsed


redrover said:
I'm adding 2 fields: =[vacation used]+[vacationsum]

[vacation used] was defined as a text field on the record I'm taking it
from. How do I get it usable in an equation? The other field
[vacationsum]
works fine. It was created as a numeric field. I've tried redefining the
record fields but it's not helping.

SteveM said:
What is the formula you are using for this field?

Steve
 
G

Guest

Thanks! I figured that was the problem but didn't know how to work around it.

Mike Mueller said:
You cannot add a string to a number. You would need to use the VAL function
on the string to convert to a number
eg vacRemaining = val([vacEarned]) - vacUsed


redrover said:
I'm adding 2 fields: =[vacation used]+[vacationsum]

[vacation used] was defined as a text field on the record I'm taking it
from. How do I get it usable in an equation? The other field
[vacationsum]
works fine. It was created as a numeric field. I've tried redefining the
record fields but it's not helping.

SteveM said:
What is the formula you are using for this field?

Steve

:

I'm trying to put a calculated field in a report but I get a #Error
message.
If I display the fields I get a blank and a value. The 'Vacation Days
Used'
field is blank (or Null or something). The VacationSum field has a
value in
it. Is this caused from trying to add a Null with a numeric value?
And if
so, how to I get around it?
 

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