A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

text to number



 
 
Thread Tools Display Modes
  #1  
Old December 10th, 2009, 06:28 AM posted to microsoft.public.access.queries
Norm
external usenet poster
 
Posts: 149
Default text to number

I have a numbers in a feild in an excell sheet that I need to change from
text to number so I can use the field in a query in Access
  #2  
Old December 10th, 2009, 03:20 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default text to number

Show some examples of the text.

If they are all numerical characters, you could use something like the CDbl
function to change them to numbers.

If the numerical characters are at the beginning of the string, something
like a street address of 123 Main St., then you can use the Val function to
extract the leading numbers.

If the numerical characters are spread around in the string, that can be a
problem.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Norm" wrote:

I have a numbers in a feild in an excell sheet that I need to change from
text to number so I can use the field in a query in Access

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:56 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.