Re: Microsoft Query

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



It would help me if you posted the exact query. I'm a bit confused as
to why you're using the [] and ! in it?


Please Help wrote:
JackeyC,

Thanks for your help. I tried your code, and I got this error message
"Incorrect syntax near ']'. Statement[s] could not be prepared.".

If I then change my code to [Field]![A]+"."+[Field]![B], I would receive
this error message,

SQL Query can't be represented graphically. Continue anyway?

If I click OK on it, I would then receive this error message,

Incorrect column expression: '['

Thanks again.

"JakeyC" wrote:

If your Query was originally:

SELECT a.first_name, a.surname
FROM example.dbo.a

then to create a third column combining both names (Full_Name), you
would use:

SELECT a.first_name, a.surname,
a.first_name+' '+a.surname AS 'Full_Name'
FROM example.dbo.a

Hope this helps.


Please Help wrote:

I use Microsoft Query to connect and to bring in the information from a
database in a SQL server. I have no problem bring the info in. However, I
have a problem creating a custom field.

For example, I have Fields (Columns) A and B. I want to create Field C that
combines the values from Fields A and B. In Access, I can create a Field C
by writing this expression in a query:

Field C: Field A & Field B

I tried to write a similar expression, and it does not recognize it. Please
help.

Thanks.



.



Relevant Pages

  • Re: OutputTo to Excel question
    ... I can't help you with the macro error message as I don't use macros. ... the result from a query. ... Save a query that pulls the same data as the report. ...
    (microsoft.public.access.macros)
  • Re: Background Web Queries flaws!
    ... There is no way to trap errors on a background query. ... There is no way to control the timeout setting. ... The basic problem is that IE spits an error message before returning control ... > hard coded a 5 minute limit into the web query system. ...
    (microsoft.public.excel.programming)
  • Re: Update Query only works first time
    ... I don't know either -- but that is what you error message says -- perhaps you are not using an updateable recordset or records were locked by something else like a form or query ... Microsoft Access MVP 2006 ... It works the first time, but then there is a very long error message with several reasons why it does not work. ...
    (microsoft.public.access.queries)
  • Re: SQL Compact Edition does not recognize parameter
    ... you might try looking in the debugger to see what the parameters collection looks like before you execute the query. ... assured that all computers have the same installation. ... It's always the same error message althought there are 35 parameters ... Only the hardware is different but on one PDA the problem exists ...
    (microsoft.public.sqlserver.ce)
  • Re: Update Query only works first time
    ... your error message indicates that 35 records are locked, which is why they cannot be updated -- do you have another process which has these records tied up? ... Microsoft Access did not update 0 fielddue to a type conversion failure, 0 recorddue to key violations, 35 recorddue to lock violations, and 0 Recorddue to validation rule violations. ... This occurs after I have run the Query the first time. ... It works the first time, but then there is a very long error message with several reasons why it does not work. ...
    (microsoft.public.access.queries)