Creating :Null field in Make Table Query

L

Leslie

In Access 97, if I created a query that included a :Null field, (Example -
SKU: null)when I ran the Make Table query, it created a Text field called SKU
in the Table. In Access 2002, if I do the same thing, it creates a binary
field in the table. Does anyone know of a way to create a null, text field
in Access 2002?

Thanks,
Leslie
 
A

Allen Browne

Yes, JET 4 is certainly less intelligent at guessing data types than
previous versions were.

You can use an IIf() expression to give JET a clue about the data type:
IIf(False, "", Null)
The False part is never true, so it always returns Null, but the presence of
the alternative is enough to indicate the field type is meant to be text.
 

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