Results 1 to 7 of 7
  1. #1
    madsc1 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    6

    Extract Partial Data


    I have an Access DB where the user appended unit #'s to the end of the address, IE 600 Columbia place 604. Not all records have this. I need to select the records that have the unit #, remove the unit #, and place in a separate column. I am familiar with VB, but new to VBA. Any ideas?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Will this be a continuing issue? how many records are you talking about?

  3. #3
    madsc1 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    6
    14000 records, and yes its ongoing. For some reason the do not want to change set up, but I need to extract the unit # for my purposes.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    When you use a computer to do this the rules need to be pretty hard and fast as you know. Will it *always* be the case that this is the only reason there are numbers at the end of the field and it will always be numbers and nothing else (like unit A)?

  5. #5
    madsc1 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    6
    It will always be only numbers, and will always be a unit or street number. If it is anything else, I can ignore it. I'm thinking 1 loop to move down the column. an inside loop using IsNumber on len(cell) the len(cell) - 1 etc if this makes any sense to you.

  6. #6
    madsc1 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    6
    I am talking about exporting DB to Excel to do this.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It can be done in Access.

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

Similar Threads

  1. Partial Limit
    By bglaugh in forum Programming
    Replies: 1
    Last Post: 09-15-2010, 06:49 AM
  2. Partial SUM of values on a query.
    By jrvf in forum Queries
    Replies: 2
    Last Post: 08-16-2010, 01:33 PM
  3. Extract Text Data
    By tmcrouse in forum Queries
    Replies: 5
    Last Post: 05-25-2010, 11:34 AM
  4. Replies: 3
    Last Post: 05-13-2010, 08:18 PM
  5. Partial Matching based Queries
    By Yatesb in forum Queries
    Replies: 0
    Last Post: 02-23-2009, 01:06 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