Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Posts
    5

    Exclamation Separate one field into many

    Hello,

    I would like to find out if there's an "easy" way to "reverse concatenate" this address block.

    The input text block takes the form:

    Street Address
    City
    Province
    Postal Code

    I need to separate each line into a different field, probably using VBA.



    Thanks!!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is it always 4 lines as you have shown? Is it in an existing field of a table? Will you be appending these records to a second table?

  3. #3
    Join Date
    Dec 2008
    Posts
    5
    The data is not pre-existing. It is to be input by way of a form and then the separate parts will be stored in a table.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    In that case just create 4 fields. You can always put them back together for display.

  5. #5
    Join Date
    Dec 2008
    Posts
    5
    Thanks. That's the approach I have taken and am proceeding with, but for the sake of simplicity in terms of input, I'd like to be able to take substrings.

    I am doing this database to simplify the work that has to be done by my company's mail room, but the clerk does not mind copying and pasting line-by-line, as it is MUCH simpler than the methods presently being used (good ol' fashioned pen and paper).

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You are *always* better off separating these into separate fields. It just takes a <TAB> to get to the next field for entry. There is not much difference between a TAB and the ENTER key. Describe how you would take in SubStrings.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. multiple fields in separate records
    By Fredo0709 in forum Database Design
    Replies: 9
    Last Post: 04-09-2010, 12:23 PM
  2. Quick way to stuff field names into text field
    By kfinpgh in forum Programming
    Replies: 0
    Last Post: 01-04-2007, 01:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums