Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

need part of field in access only

Posted on 2013-01-06
6
394 Views
Last Modified: 2013-01-06
Hey an easy one for anyone but me probably... need to separate this data from one field into 3

eg:

10:business name:$3.21
10         business name           $3.21

so i want one with 10, one with "business name" and one with $3.21

what would be the easiest way to do this, either using a modify query or vba macro?

appreciate the help.

Rusyt
0
Comment
Question by:rustyroo
6 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 38749574
Look into the use of SPLIT on the ":" and that should do the trick for you.

HTH,

Kent
0
 
LVL 12

Accepted Solution

by:
duttcom earned 500 total points
ID: 38749604
When you say separate it into 3 - where do you want the field values to go?

Is this a once-off exercise, eg. Do you have a database already populated that you need to extract the 3 fields from once only, or will data be added in the 1-field format which will need to be split into 3 after entry?

Also, the data is already delineated by the ":" so it is already effectively split into 3 fields - you could use that knowledge to export the data into a text file, do a find and replace on the colons to convert them into commas, which would then give you the data in three fields as a CSV file which can be reimported.
0
 

Author Comment

by:rustyroo
ID: 38749628
Thanks... it is one field of about 20 that i have to import.  The rest are easy.  My plan is to import the 20 fields to one table, then append this to another new table with the extra 3 columns which will be the main data table I use.  I will have to do this monthly, so plan to use this first table as a temp table on the way to appending.  
Hope that helps
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 12

Expert Comment

by:duttcom
ID: 38749641
Where are you importing from? Is it a text file or some other source?

You may be able to split that field on import depending on the source.
0
 

Author Comment

by:rustyroo
ID: 38749722
it is a csv file
0
 
LVL 29

Expert Comment

by:IrogSinta
ID: 38749780
As duttcom mentioned, you can parse this right when you import.  Just specify the colon ":" as your delimeter.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question