Results 1 to 4 of 4
  1. #1
    tarenja is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2013
    Posts
    15

    Alen Browne's Concatenate, some help would be appreciated

    I've recently found Alen Browne's concatenate function; it's brilliant.
    Unfortunately I'm not so smart.


    I have it working in my application but when I tried to add an extra condition to the "where" part I've run into problems.
    It's the last part that's beating me.
    "and [tblDelegatesSelectedActivities.ActivityID]=7"
    Can anyone point out where I'm going wrong please?

    ConcatRelated("ActivityID","tblDelegatesSelectedAc tivities","DelegateID = " & [tblDelegates.DelegateID] and [tblDelegatesSelectedActivities.ActivityID]=7" )

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Put your WhereCondition string into a string variable and display it in a MsgBox and you will see your problem.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,618
    Missing an & and quote mark in the concatenation. Remember: parens, brackets, quotes, apostrophes in pairs.

    This function is called in a query that joins tblDelegatesand and tblDelegatesSelectedActivities?

    "DelegateID = " & [tblDelegates.DelegateID] & " and [ActivityID]=7" )
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    tarenja is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2013
    Posts
    15
    Thank you very much. Works fine now. I hate being stupid!

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

Similar Threads

  1. Database Design Assistance would be greatly appreciated
    By Zephyx in forum Database Design
    Replies: 4
    Last Post: 06-27-2013, 12:31 PM
  2. Replies: 2
    Last Post: 04-29-2011, 01:16 PM
  3. Replies: 1
    Last Post: 08-18-2010, 02:05 PM
  4. Help is much Appreciated
    By Kookai in forum Database Design
    Replies: 1
    Last Post: 08-16-2010, 04:50 AM
  5. Replies: 4
    Last Post: 08-30-2009, 12:31 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