View Single Post
  #4  
Old June 4th, 2010, 03:43 PM posted to microsoft.public.access.queries
jet04 via AccessMonster.com
external usenet poster
 
Posts: 2
Default Pulling specific data from table field

Karl,

Thanks for you help on this one, it really was just frustrating me! The
Last Name search completely worked, but I am having issues pulling the First
Name data.

When running the First Name query, an error is returned saying Access
was unable to update a number of fields due to a type conversion failure. It
states this is due to key violations, lock violations, and validation rule
violations.

I'm wondering if this is because of what John menioned in this string,
which is something I have found to be true of my table. There are a few
instances of a third name being within the userinfo field. I should have
perused my file to recognize that issue, but in my frustration it seems I
overlooked the third name.

Example: ABC 000000 111, Doe John Paul, R, W, T222222

I'm not sure there is an answer as how to work around this problem, but
thought I'd at least give some feedback as to how the help you'd given me
worked out. Thanks again for the suggestion and I'm going to keep working on
this and see if there is a solution to my problem.



KARL DEWEY wrote:
Try these --
LName: Mid([tbl1].[userinfo], 17, Instr(20,[tbl1].[userinfo], " ")-16)

FName: Mid([tbl1].[userinfo],InStr(20,[tbl1].[userinfo],"
")+1,InStr(23,[tbl1].[userinfo],", ")-InStr(20,[tbl1].[userinfo]," ")-1)

Then build on the first name one for initals.

I am having a problem figuring the right way to pull specific data from
within the text of the table's field and separating it into a unique field

[quoted text clipped - 23 lines]

Any thoughts?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/201006/1