Re: Concatenate error - Duane Hookom's concat function



Kat,
Since Region is a text field it should be in it's own quotes...
"Region = '" & [Region] &"'"
I'll put spaces in the quotes for clarity, but don't use them in the code...
"Region = ' " & [Region] & " ' "

--
hth
Al Campagna
Candia Computer Consulting
Microsoft Access MVP - Candia, NH USA
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."


"Kat" <Kat@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E8548303-353A-4640-ADC1-4822BF2FD1A4@xxxxxxxxxxxxxxxx
I followed the Duane Hookom's directions for setting up a concatenate
function in my database. As far as I can tell it's all set up correctly...

I copied the basConcatenate function over to my database and in my query I'm
using the VBA code:

RegionTest: Concatenate("SELECT CongregationName FROM tblCongregation WHERE
Region =" & [Region])


But when I run the query, it comes up with an error for each row:

Run-time error '-2147217900 (8004e14)':
Syntax error (missing operator) in query expression 'Region =North West'.

(ie where the row is for the North West region)

What have I done wrong??
How do I fix it??

Please help!



.



Relevant Pages

  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: OT: SQL
    ... query processing. ... FROM Employees e, Employees m, Management mgt ... Manager and Employee Salaries. ... The scheme used does not model database files in general, ...
    (sci.logic)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... boxes from the form header, events, code, etc and ran the form query source ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would be ...
    (microsoft.public.access.conversion)
  • RE: Import external data - web query
    ... Your reply for my query is very extensive, this is for importing a file from ... The data source I want isn't listed in the Select Data Source dialog box. ... information used to connect to a database. ... Check your driver First, make sure you have the right ODBC driver (Open ...
    (microsoft.public.excel.misc)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... synchronize combo boxes to the detail section or the parameter form query ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would ...
    (microsoft.public.access.conversion)