Datatype problem

G

Guest

Hi,

I am using an create table qry base on an existing imported table with the
addition of two further feilds Expr1 and Expr2. problem I have is the
datatype of these feilds is set to binary after the query runs. I would like
them set to text and currency.

Anyone point me in the right direction as how to achieve this.

Thanks
 
G

Guest

Check out the CStr and CCur functions in Help.

It would be something like CStr(Expr1) and CCur(Expr2) .
 
G

Guest

Hi,

thanks for that..it did point me in the right direction. I found that if I
right click in the Query Design window (in the show table area) I am able to
choose parameters. In the perameters box I can then use the name "type" and
set its property to text likewise I can do the same entry for "Cost" and set
it as currency.

(Expr1's name is type and Expr2 is cost.)

Then when the create table is run it creates these fields with the correct
datatype.
 

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