Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Make Table' query in Access XP creates fields as binary type. 1

Status
Not open for further replies.

kramerica

Technical User
Jun 19, 2001
74
0
0
US
sql statment:

SELECT [Enter Effective Date MM/DD/YYYY] AS [Date], [Enter Denial Explanation Code] AS EX INTO [tblParameters];


If you open a new query in Access 2002 - and paste this in the SQL window - and run it, it will create a new table called "tblParameters' - with 2 fields.

Unfortunately the fields are formatted as 'BINARY'!!@#$

Any ideas? Is this a bug in Access XP.

Kramerica
 
Try this instead:

SELECT DateValue([Enter Effective Date MM/DD/YYYY]) AS [Date], Int([Enter Denial Explanation Code]) AS EX INTO tblParameters;


Ascii dumb question, get a dumb Ansi
 
We ended up changing the sql statement to:

PARAMETERS [Enter Effective Date MM/DD/YYYY] Text ( 255 ), [Enter Denial Explanation Code] Text ( 255 );

SELECT [Enter Effective Date MM/DD/YYYY] AS [Date], [Enter Denial Explanation Code] AS EX INTO [tblParameters];


By using the parameters it allowed us to force the fields as text. (not sure why they want the [date] to be stored as text.. but it is what it is)

Thanks BLORF - your solution also worked and it was very helpful.

Kramerica
[roll1]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top