Using a query to make a table and losing data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

To remove some redundancy between different but similar tables I have a
query which a field I defined that uses the Iif statement to compare memo
field A and memo field B in a database and choose A if it is <> "" and B
otherwise. i.e.

Iif(MemoFieldA <>"", MemoFieldA, MemoFieldB)

But when I use this to create a table the resulting field is a Text field
and of course loses any information beyond 255 characters. I can't see how to
specificy the field type in the query. Help!

Thanks for any help.

Cheers,

Alasdair
 
You could create the query ahead of time, then append the new data to the
existing structure. This will allow you to write to a Memo field.
 
Steve,

Thanks, that is a practical solution.

Do you know why this conversion error is happening? I have other fields I am
using Iif to select between two values and I haven't seen any other
conversion errors but should I go through them 1-by-1 and check closely? The
majority of other fields I am creating are text with some date types as well.

Cheers,

Alasdair
 

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

Back
Top