Page 2 of 5 FirstFirst 12345 LastLast
Results 16 to 30 of 62
  1. #16
    evilleve is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Tehran
    Posts
    31
    Quote Originally Posted by RuralGuy View Post
    Are you showing two or three records? You do realize you have no consistant delimiter to use, right?
    Yes , i must split field with "(" delimiter first , then with "#" , then with ","



    Quote Originally Posted by RuralGuy View Post
    To be honest, this is not a good situation to use the Split() function because you do not have delimited data. As I said in my first post, you will probably ned to use string functions to get the values you need. Mid(), Left(), Right(), InStr().
    i can't use these functions because the strings are not constance
    if i can stop the error and do something to put in error fields null , the problem will be solved
    Last edited by evilleve; 03-06-2011 at 08:45 AM.

  2. #17
    evilleve is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Tehran
    Posts
    31
    here is the sample :
    http://www.4shared.com/file/IZ8hnxNR/Database2.html

    and its safe , to be sured checked by virustotal:
    http://www.virustotal.com/file-scan/...02c-1299413306

  3. #18
    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
    Are you talking about just the values in the REPAIRWELDERS field?

  4. #19
    evilleve is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Tehran
    Posts
    31
    yes , now most of the rows are blank , but soonly all of them will be filled

  5. #20
    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
    Does Mid([REPAIRWELDERS],2,9) return the first field *all* of the time? Why does ID 607 seem to have 2 strings in the REPAIRWELDERS field?

  6. #21
    evilleve is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Tehran
    Posts
    31
    Quote Originally Posted by RuralGuy View Post
    Does Mid([REPAIRWELDERS],2,9) return the first field *all* of the time? Why does ID 607 seem to have 2 strings in the REPAIRWELDERS field?
    no , it changes : 150-GTAW-094 , 8-SMAW-1001 , Etc ....
    Its the reason i cant use mid , left functions
    each repairwelder information stored in () , the repairwelders maybe become up to 20 , so i have to split twenty "()"

  7. #22
    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
    So each REPAIRWELDER field could have up to 20 (...) sequences in it?

  8. #23
    evilleve is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Tehran
    Posts
    31
    yes ............................................

  9. #24
    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
    So how do you propose splitting this up? Is each (...) sequence a separate REPAIRWELDER? Do you want to make a separate records for each of them?

  10. #25
    evilleve is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Tehran
    Posts
    31
    Quote Originally Posted by RuralGuy View Post
    So how do you propose splitting this up? Is each (...) sequence a separate REPAIRWELDER? Do you want to make a separate records for each of them?
    yes each "()" is a separate repairwelder and i want to make a separate records for each of them
    i want to split each "()" in one field , to each welder information be splited .

  11. #26
    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
    How about starting by creating a separate record for each (...) sequence? Once we have a separate record we can then tackle separating the value into fields. It can be done but one thing at a time. If we count the number of "(" in the REPAIRWELDER field would that tell us how many records we need?

  12. #27
    evilleve is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Tehran
    Posts
    31
    yes ,of course
    last night i could separate brackets without split function
    here is the link :

    http://rapidshare.com/files/451346997/Database3.accdb

  13. #28
    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
    And if you have 20 REPAIR WELDERS?

  14. #29
    evilleve is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Tehran
    Posts
    31
    then i must do it for 20 repair welders , too hard !

  15. #30
    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
    You are creating additional fields and *not* additional records. You would still need to split out the string into its separate fields. Do you have *any* control over the input?

Page 2 of 5 FirstFirst 12345 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Separate combo box
    By sanos_a in forum Access
    Replies: 1
    Last Post: 10-07-2010, 05:30 AM
  2. How To Chane Color Of Text In Columns
    By aamer in forum Access
    Replies: 5
    Last Post: 09-12-2010, 09:30 AM
  3. Run 2 Processes in Separate Threads
    By matt_tapia in forum Programming
    Replies: 1
    Last Post: 08-06-2009, 12:33 PM
  4. Separate queries?
    By sid in forum Queries
    Replies: 0
    Last Post: 08-01-2009, 10:31 AM
  5. Separate one field into many
    By ellen in forum Programming
    Replies: 5
    Last Post: 12-22-2008, 06:01 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