Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 4th, 2013, 08:51 AM
sanriv sanriv is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 1 sanriv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 37 sec
Reputation Power: 0
Smile Txt To Columns

Hi
Im quite new to access and need to separate the data below which is separated by a ^ into different columns but need to do it from a query. Is it possible?

DP:135/11^LIC:079508^MDFV:07^MDFP:0954^0:135/11;0008,1:135-02D;0008,2:135-03E;0054

Thanks in advance
Sandro

Reply With Quote
  #2  
Old February 5th, 2013, 05:26 PM
June7's Avatar
June7 June7 is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Location: The Great Land
Posts: 256 June7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 9 h 29 m 29 sec
Reputation Power: 5
That depends. How consistent is this structure? Are the ^ characters always in the same position in the string? Always 4 of them? Use string manipulation functions.

Let x represent the original string.

Left(x,9)

Mid(x,11,10)

Mid(x,22,7)

Mid(x,30,9)

Mid(x,40)
__________________
I like to know if my suggestion helped you. One way to let me know is by clicking scales at top right corner of post.
Debug!Debug!Debug!http://www.cpearson.com/excel/debug.htm

Reply With Quote
  #3  
Old April 16th, 2013, 09:49 AM
Estuardo Estuardo is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Portugal
Posts: 6 Estuardo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 39 sec
Reputation Power: 0
Import

G'd Afternoon,
You can also try importing your text file with the access import wizard. there you can set your own separator and don't have to write a single line of code.
G'd luck

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Txt To Columns


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap