Make Table Query not inheriting data types

JamesMcS

Keyboard-Chair Interface
Local time
Today, 18:35
Joined
Sep 7, 2009
Messages
1,819
Hi all, hope you can help out with an annoying problem:

I've got a make table query based on a number of crosstabs, the value field of which I've CDbl'd to make sure it comes out as a number. The crosstabs seem to display the data as a number OK, but when I incorporate them all into the make table, they all come out as text. Grrr!

I've formatted the fields in the make table as numbers in the vain hope that that might make a difference, but no joy..... anybody know what I'm missing?
 
Got around it by CDbling the make table fields too. Thanks for the pointer VBA, I thought my method was a bit rubbish, I'll look into tabledefs now.
 
This is one of those things I don't use often. A make table query will follow the datatype that is used in the field. If however, it's a calculated field (which I think yours is), then it would make it a text field. You would have to use the TableDef collection to change the properties after creation.
 

Users who are viewing this thread

Back
Top Bottom