Concatenate Problems

G

Guest

I am trying to concatenate a field in a list of records. I have used the
sample given be Duane Hookom. When i try to type the expression for a
concatenation i receive an error that says that concatenate is an undefined
function, but when i copy and paste the code from Word, i receive a syntax
error on the first field in the concatenation section.
The code I am using:
SELECT Suppliers.Supplier, Reports.Report, Concatenate("SELECT Product_ID
FROM SuppliersXREFProducts WHERE SuppliersXREF.Supplier_ID = " &
[SuppliersXREFProducts.Supplier_ID]) AS ProductsSupplied
FROM Suppliers INNER JOIN (Reports INNER JOIN SuppliersXREFProducts ON
Reports.Report_ID = SuppliersXREFProducts.Report_ID) ON Suppliers.Supplier_ID
= SuppliersXREFProducts.Supplier_ID;
 
D

Duane Hookom

You have a table named "Reports"? This is a collection name in Access.
Did you create a module in Access and import or copy the Concatenate()
function?
What does any of this have to do with Word?
 
G

Guest

I did not create a module in Access. Would the Concatenate function already
be included with the program or do i have to locate a copy of it on the web.
I could not find any such file when i looked. With the reference to word, i
simply meant that i copied the code to a word document from the generic
sample and then re-wrote my expression underneath it and then copied it back
into excel. When i did this i received a different error. That was the
purpose of including that statement.

Duane Hookom said:
You have a table named "Reports"? This is a collection name in Access.
Did you create a module in Access and import or copy the Concatenate()
function?
What does any of this have to do with Word?

--
Duane Hookom
MS Access MVP

JKarchner said:
I am trying to concatenate a field in a list of records. I have used the
sample given be Duane Hookom. When i try to type the expression for a
concatenation i receive an error that says that concatenate is an
undefined
function, but when i copy and paste the code from Word, i receive a syntax
error on the first field in the concatenation section.
The code I am using:
SELECT Suppliers.Supplier, Reports.Report, Concatenate("SELECT Product_ID
FROM SuppliersXREFProducts WHERE SuppliersXREF.Supplier_ID = " &
[SuppliersXREFProducts.Supplier_ID]) AS ProductsSupplied
FROM Suppliers INNER JOIN (Reports INNER JOIN SuppliersXREFProducts ON
Reports.Report_ID = SuppliersXREFProducts.Report_ID) ON
Suppliers.Supplier_ID
= SuppliersXREFProducts.Supplier_ID;
 
D

Duane Hookom

The code is included in the sample mdb from the web. You explained the
"Word" reference but now you added a reference to "Excel".

--
Duane Hookom
MS Access MVP

JKarchner said:
I did not create a module in Access. Would the Concatenate function
already
be included with the program or do i have to locate a copy of it on the
web.
I could not find any such file when i looked. With the reference to word,
i
simply meant that i copied the code to a word document from the generic
sample and then re-wrote my expression underneath it and then copied it
back
into excel. When i did this i received a different error. That was the
purpose of including that statement.

Duane Hookom said:
You have a table named "Reports"? This is a collection name in Access.
Did you create a module in Access and import or copy the Concatenate()
function?
What does any of this have to do with Word?

--
Duane Hookom
MS Access MVP

JKarchner said:
I am trying to concatenate a field in a list of records. I have used
the
sample given be Duane Hookom. When i try to type the expression for a
concatenation i receive an error that says that concatenate is an
undefined
function, but when i copy and paste the code from Word, i receive a
syntax
error on the first field in the concatenation section.
The code I am using:
SELECT Suppliers.Supplier, Reports.Report, Concatenate("SELECT
Product_ID
FROM SuppliersXREFProducts WHERE SuppliersXREF.Supplier_ID = " &
[SuppliersXREFProducts.Supplier_ID]) AS ProductsSupplied
FROM Suppliers INNER JOIN (Reports INNER JOIN SuppliersXREFProducts ON
Reports.Report_ID = SuppliersXREFProducts.Report_ID) ON
Suppliers.Supplier_ID
= SuppliersXREFProducts.Supplier_ID;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Concatenation 7
Concatenate Question 1
concatenate field in a query 5
Concatenate Error 10
2007 Concatenation problems 2
SQL SYNTAX ERROR ON JOIN OPERATION 4
Concatenate 1
concatenate from query 1

Top