UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Automate format from Number to Text    
 
   
cvlasak
post Nov 10 2006, 09:15 AM
Post #1

UtterAccess Addict
Posts: 210



Hello,

I’m looking for a way to automate the formatting of a field in a table

What I’m doing is importing a excel spread sheet into access, but one of the fields I want to be text is showing up at a number.

Is there anyway I can have access change this field from a number to a text field?

Thank you

Corey
Go to the top of the page
 
+
NoahP
post Nov 10 2006, 09:21 AM
Post #2

Retired Moderator
Posts: 10,493
From: Lexington/Louisville KY USA



The 'quick and dirty' way to do this is to import the data into a temp table, and then use an append query to format the data to the datatypes you need and insert the records into the 'real' table. The CStr() function will convert data to a string/text type. Access/VBA Help should have more on the specifics.
Go to the top of the page
 
+
cvlasak
post Nov 10 2006, 09:39 AM
Post #3

UtterAccess Addict
Posts: 210



Thanks Noahp, this will work
Go to the top of the page
 
+
NoahP
post Nov 10 2006, 03:53 PM
Post #4

Retired Moderator
Posts: 10,493
From: Lexington/Louisville KY USA



You are welcome!
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th June 2013 - 03:31 PM