Formatting only affects the appearance of the original data, not its data
type. To make the column in the new table currency data type use the CCur
function to return the values as currency data type. In query design view,
in place of the field name out something like this:
MyCurrencyField: CCur(Nz([MyField],0))
This should insert the values of MyField as currency data in the new table
in a column named MyCurrencyField, converting any Nulls to zeros (you can of
course use whatever name you like for the new column).
The other way to address this is to only make the table once, then change the
data type of the field in the table. Then, in the future, insert into that
table and delete from it, rather than creating it and dropping it on the fly.
Another advantage of this is that if you create a report or query that uses
that table, it will always be there.
--
HTH
Dale
Don''t forget to rate the post if it was helpful!
email address is invalid
Please reply to newsgroup only.
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.