Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access ODBC Client Server > Insert Into wor...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 1414 of 1511
Post > Topic >>

Insert Into works in 2007 by not in 2002 against SQL2000 and local

by pmacdiddie@[EMAIL PROTECTED] Dec 8, 2007 at 02:14 PM

I have this query that when run on Access 2007 work, when run in 2002
it fails with the following error:

[Microsoft][ODBC SQL Server Driver][SQL Server] Incorrect Syntax near
'.'.

INSERT INTO tblQualitySurvey ( Company, Job_Num, QS_Date, First_Name,
Customer_Number, Email, Job_Num_Count ) SELECT DISTINCTROW
Customers.Company, First(tblJobs.Job_Num) AS FirstOfJob_Num,
First(#10/8/2007#) AS Expr1, Customers.[First Name], Customers.
[Customer Number], Customers.Email, Count(tblJobs.Job_Num) AS
CountOfJob_Num FROM Customers INNER JOIN tblJobs ON Customers.
[Customer Number] = tblJobs.[Customer Number] Where
(((Customers.EMail)<> null) AND ((tblJobs.Confirmed)='Yes') AND
((tblJobs.StrikeCall) > #10/1/2007# And (tblJobs.StrikeCall) <=
#10/8/2007#)) GROUP BY Customers.Company, Customers.[First Name],
Customers.[Customer Number], Customers.Email WITH OWNERACCESS OPTION;

I know # should not work for SQL server, but it does on the 2007
machine.

The tblQualitySurvey is on SQL Server and the Customers and tblJobs
are local jet tables.

Any ideas?

Preston
 




 7 Posts in Topic:
Insert Into works in 2007 by not in 2002 against SQL2000 and loc
pmacdiddie@[EMAIL PROTECT  2007-12-08 14:14:10 
Re: Insert Into works in 2007 by not in 2002 against SQL2000 and
"Douglas J. Steele&q  2007-12-09 07:53:06 
Re: Insert Into works in 2007 by not in 2002 against SQL2000 and
pmacdiddie@[EMAIL PROTECT  2007-12-09 16:24:25 
Re: Insert Into works in 2007 by not in 2002 against SQL2000 and
"Gary Walter" &  2007-12-10 07:08:15 
Re: Insert Into works in 2007 by not in 2002 against SQL2000 and
pmacdiddie@[EMAIL PROTECT  2007-12-10 08:03:14 
Re: Insert Into works in 2007 by not in 2002 against SQL2000 and
"Sylvain Lafontaine&  2007-12-10 16:06:27 
LRe: Insert Into works in 2007 by not in 2002 against SQL2000 an
"david" <dav  2008-01-10 14:26:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 22:05:08 CST 2008.