Convert text field to currency field on reports

S

Susan May

I import an excel worksheet with a lot of data and have learned all the
fields have to be imported as text fields even though there are number fields
and currency fields. So, how does one tell a text field to display as a
currency field in the properties section of that field? All I need is
$200,000 (no decimals needed).

Many thanks.

Susan
 
M

Michael J. Strickland

Susan May said:
I import an excel worksheet with a lot of data and have learned all the
fields have to be imported as text fields even though there are number
fields
and currency fields. So, how does one tell a text field to display as
a
currency field in the properties section of that field? All I need is
$200,000 (no decimals needed).

Many thanks.

Susan


In Table Design, for the "Format" entry, select "Currency" or specify
another format (use help to see available formats).

--
 
M

Michael J. Strickland

Susan May said:
I import an excel worksheet with a lot of data and have learned all the
fields have to be imported as text fields even though there are number
fields
and currency fields. So, how does one tell a text field to display as
a
currency field in the properties section of that field? All I need is
$200,000 (no decimals needed).

Many thanks.

Susan


Sorry, for reports:

For the textbox in question, set the "Control Source" property to:
=Format([fieldname],"Currency")
or
=Format([fieldname],"$#,###") for no decimal places.


where "fieldname" is the name of the field you want in that text box.
--
 
S

Susan May

Mike - I can't do that because I have import new records 2 x a month and if I
change the structure the numbers don't come over. I played around yesterday
with a copy and when I changed the structure to currency, I lost a lot of
data. I created a text field yesterday in the query and it looked like this:
New AUM Predicted: CCur(Nz([AUM Predicted],0)), but that returns the .00 and
I don't want the decimal and cents, just the dollars.

Any other suggestions?
 
M

Michael J. Strickland

Susan May said:
Mike - I can't do that because I have import new records 2 x a month
and if I
change the structure the numbers don't come over. I played around
yesterday
with a copy and when I changed the structure to currency, I lost a lot
of
data. I created a text field yesterday in the query and it looked
like this:
New AUM Predicted: CCur(Nz([AUM Predicted],0)), but that returns the
.00 and
I don't want the decimal and cents, just the dollars.

Any other suggestions?

For the textbox on the Report:

Set the "Control Source" property to:
=Format([fieldname],"Currency")
or
=Format([fieldname],"$#,###") for no decimal places.



--
 
S

Susan May

Hi Mike:

That worked! Thanks so much.

Michael J. Strickland said:
Susan May said:
Mike - I can't do that because I have import new records 2 x a month
and if I
change the structure the numbers don't come over. I played around
yesterday
with a copy and when I changed the structure to currency, I lost a lot
of
data. I created a text field yesterday in the query and it looked
like this:
New AUM Predicted: CCur(Nz([AUM Predicted],0)), but that returns the
.00 and
I don't want the decimal and cents, just the dollars.

Any other suggestions?

For the textbox on the Report:

Set the "Control Source" property to:
=Format([fieldname],"Currency")
or
=Format([fieldname],"$#,###") for no decimal places.



--
 

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