SpellNumber macro in Access report

J

jrh

I use a macro called SpellNumber in Excel that takes a
numeric number from a specified cell and converts it to
text. I would like to use that same macro in an Access
report but I'm not smart enough about Access to figure out
how to do it. Any ideas?
 
S

Steve Schapel

Jrh,

For a start, macros in Excel and macros in Access are totally
different creatures/concepts.

In Access, the type of thing you are talking about can not be done
with a macro. You need to apply a user-defined function to the field
inthe query that the report is based on. The function needs to be
written in a VBA module. An example of such a function, applied to
currency amounts, can be found at
http://www.mvps.org/access/modules/mdl0001.htm

- Steve Schapel, Microsoft Access MVP
 

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