Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2007

Tip: Looking for answers? Try searching our database.

Help with fConcatChild

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jaybird - 19 Nov 2007 17:45 GMT
My users need line item information contained in a report to be contained on
a single line for every Order Number.  They don't like the grouping function
which does essentially the same thing, but in the interest of keeping the
peace I've been trying to use the fConcatChild function from Allen Browne's
website.  I'm having trouble with it, however.  If my Orders table is called
[Order Entry5], and my Order Details table is called [tblOrderDetails], they
are linked by field [Order Number], and the field from [tblOrderDetails] that
I would like concatenated is called [ID], shouldn't the SQL expression be
written like this?

SELECT [Order Entry5].*, fConcatChild("tblOrderDetails","[Order
Number]","ID","Long",[Order Number]) AS SubFormValues
FROM [Order Entry5];

I'm getting a compile error in query expression
fConcatChild("tblOrderDetails","[Order Number]","ID","Long",[Order Number]).  
(Error 3075)

I am using DAO 3.6.  A number of other users have managed to get results
from the query, so it can't be THAT difficult.  Does anyone have an idea
where I am going wrong?

Signature

Why are you asking me?  I dont know what Im doing!

Jaybird

Duane Hookom - 19 Nov 2007 21:34 GMT
Sorry I can't (don't want to) help you with the fConcatChild function. I
recommend the generic function at
http://www.rogersaccesslibrary.com/OtherLibraries.asp#Hookom,Duane.

Your query would contain a column/field like:
Concatenate("SELECT ID FROM tblOrderDetails WHERE [Order Number]=" & [Order
Number])

If [Order Number] is text then use:
Concatenate("SELECT ID FROM tblOrderDetails WHERE [Order Number]=""" &
[Order Number] & """")

Signature

Duane Hookom
Microsoft Access MVP

> My users need line item information contained in a report to be contained on
> a single line for every Order Number.  They don't like the grouping function
[quoted text clipped - 17 lines]
> from the query, so it can't be THAT difficult.  Does anyone have an idea
> where I am going wrong?
Jaybird - 20 Nov 2007 00:49 GMT
Fantastic!  It took some doing, but I got it to work...  Pretty neat function!
Signature

Why are you asking me?  I dont know what Im doing!

Jaybird

> Sorry I can't (don't want to) help you with the fConcatChild function. I
> recommend the generic function at
[quoted text clipped - 29 lines]
> > from the query, so it can't be THAT difficult.  Does anyone have an idea
> > where I am going wrong?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.