Field Size and Data Type in Query (1 Viewer)

cfmiles

Registered User.
Local time
Today, 02:46
Joined
Jul 9, 2001
Messages
17
Is there a way to define the Field Size and Data Type in the query when performing a Make Table?

I've tried Setting the field size and data type in an "existing" table and then use an append query to fill it, however, I receive a validation rule error.

I can make the table and then change the field size and data types for all of the fields without losing any data....
>>>>>> I need to give this file to someone every month, so a more automated way would be much appreciated!

Thanks in advance for any help!
 

Liv Manto

Registered User.
Local time
Today, 02:46
Joined
Apr 26, 2001
Messages
266
You can create a table using vba code.
You could set the field type, size etc.
 

Pat Hartman

Super Moderator
Staff member
Local time
, 21:46
Joined
Feb 19, 2002
Messages
43,603
The validation rule you're probably running afoul of is the one associated with the "allow zero length" property. The default for this property is no. If your data may contain zero length strings, set the property to yes.
 

cfmiles

Registered User.
Local time
Today, 02:46
Joined
Jul 9, 2001
Messages
17
Thanks to both of you for the suggestions. The Allow Zero Length "Yes" was the best solution for what I was doing. Thanks so much for the response!
 

Users who are viewing this thread

Top Bottom