May 16, 2002 #1 lolitek Technical User Jan 6, 2002 3 US Current fields: fname 1 lname 1 fname 2 lname 2 fname 3 lname 3 Resulting fields will be: fname 1 and lname 2 --->MainAuthor all the rest --->Authors Any assistance on doing this smoothly via code would be appreciated.
Current fields: fname 1 lname 1 fname 2 lname 2 fname 3 lname 3 Resulting fields will be: fname 1 and lname 2 --->MainAuthor all the rest --->Authors Any assistance on doing this smoothly via code would be appreciated.
May 16, 2002 #2 cani MIS May 10, 2002 17 BM Not sure how complicated you want it. I would imagine you are combining them in a separate fields say "mainauthor"/"rest" [mainauthor] = [fname1] & " " & [lastname] [rest] = ..... following the same convention as above. Or declaring a variable as a string Dim mnauth as string mnauth = [fname1] & " " & [lastname] Upvote 0 Downvote
Not sure how complicated you want it. I would imagine you are combining them in a separate fields say "mainauthor"/"rest" [mainauthor] = [fname1] & " " & [lastname] [rest] = ..... following the same convention as above. Or declaring a variable as a string Dim mnauth as string mnauth = [fname1] & " " & [lastname]
May 16, 2002 #3 thekon Programmer Dec 13, 2001 35 GR Put this in SQL view of query (delete anything else) SELECT fname1 & " " & lname1 AS MainAuthor, fname2 & " " & lname2 & ", " & fname3 & " " & lname3 AS Authors FROM Your_Table No need for programming Upvote 0 Downvote
Put this in SQL view of query (delete anything else) SELECT fname1 & " " & lname1 AS MainAuthor, fname2 & " " & lname2 & ", " & fname3 & " " & lname3 AS Authors FROM Your_Table No need for programming