Results 1 to 3 of 3
  1. #1
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176

    Allen Browne's ConcatRelated function, is there a way to nest/alter this?


    Please excuse me, I don't know much about coding;

    So I was wondering if I could somehow get the function to pull from 2 fields and display them within the same comma space:

    Example:
    Initial Field;
    1 l a l big
    1 l b l small
    1 l c l tiny
    2 l a l jumbo
    2 l b l large

    I want to get;
    1 l (a) big, (b) small, (c) tiny
    2 l (a) jumbo, (b) large

    It doesn't have to have parentheses, just something to differentiate them.

    I'm not sure is this is something moderately simple that means just chaning the expression or something way more complicated that means changing the VBA code.
    Has anyone done something like this?

    Thanks!

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    want to link the thing you're referencing from allen browne?

  3. #3
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176
    Sure its http://allenbrowne.com/func-concat.html
    But... I ended up figuring it out, much more simple than I though

    ConcatRelated(" '(' & TradeCode & ') ' & Name","Contractor1",("[ProjectCode] =""" & [ProjectCode] & """"))

    Just using
    '(' & TradeCode & ') ' & Name
    As the stringField, " " Didn't work but for some reason ' ' worked

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

Similar Threads

  1. Allen Browne GoHyperlink Module help
    By kagoodwin13 in forum Modules
    Replies: 3
    Last Post: 06-10-2013, 07:43 PM
  2. Allen Browne Ranking Sample?
    By kwooten in forum Queries
    Replies: 1
    Last Post: 05-17-2013, 04:42 PM
  3. Need a little help with Allen Browne code
    By NewtoIT in forum Programming
    Replies: 16
    Last Post: 05-09-2012, 04:50 PM
  4. Replies: 7
    Last Post: 01-26-2011, 08:31 PM
  5. Replies: 1
    Last Post: 08-18-2010, 02:05 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