Insert Query Help

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jeff York (anonymous_at_discussions.microsoft.com)
Date: 06/10/04


Date: Thu, 10 Jun 2004 07:29:53 -0700

That helped guys. Thank you so much!
>-----Original Message-----
>Hi-
>
>I am having trouble with a query, perhaps you comeone
can
>help. I am trying to insert into a table some values
that
>are a result of a select statement. I am finding that
>this won't work. What is the best way to do this. I am
>attaching the failed query. THanks!!
>
>Insert into Xref_comp_sr
>
>(CM_ID,
>SR_ID,
>Date_Assigned,
>Role)
>
> VALUES
>(
>
>(SELECT CM_ID FROM XREF_COMP_SR JOIN SALES_REP
> ON XREF_COMP_SR.SR_ID = SALES_REP.SR_ID
> Where SR_LOC_ID IN(30)),
>
>'DMFAUS',getdate(),'BMR'
>)
>
>.
>



Relevant Pages

  • RE: Access 2007 - Overflow + error 2950 when running a macro
    ... Is the error a stack overflow or a numeric overflow? ... You usually have to look at the data that is causing trouble ... Through your tip I could restrict the query ...
    (microsoft.public.access.macros)
  • RE: Access 2007 - Overflow + error 2950 when running a macro
    ... Is the error a stack overflow or a numeric overflow? ... You usually have to look at the data that is causing trouble ... You could try breaking the data into half and then quarters; ... Through your tip I could restrict the query ...
    (microsoft.public.access.macros)
  • Re: MS Access project cant find query
    ... Probably that you have some trouble with the owner/schema of the query. ... can have multiple tables or queries with the same name but with a different ... Sylvain Lafontaine, ing. ...
    (microsoft.public.access.adp.sqlserver)
  • Re: beginner: using parameter in functions
    ... templating sure is a great way to create dynamic query strings. ... i am having trouble using parameter values in my function and to be ...
    (comp.lang.python)
  • Re: ODBC --call failed
    ... The trouble could be in the where clause. ... BEFORE you do that MAKE a backup copy of the Query. ... how to use VBA to build the query string? ...
    (microsoft.public.access.queries)