I am having a problem with 1 SQL Query Command.
SELECT Count(PendingTransmission.Status) AS CountOfStatus
FROM PendingTransmission
WHERE (((PendingTransmission.Name)="RU") AND ((PendingTransmission.Status)=1));
It works fine in MSAccess but when I attempt to run it in HM I get a message stating.
Error 4294967295: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1
I cannot seem to get it to work.
Thanks
StevenE
Problem with SQL Query
I cannot find any information on the error, other than a MS KB article.
http://support.microsoft.com/default.aspx/kb/171850
StevenE
http://support.microsoft.com/default.aspx/kb/171850
StevenE
I agree - your problem relates to limitation of the Microsoft Access ODBC driver. But it does not look like "Prompting for query parameters".This is a limitation of the Microsoft Access ODBC driver. Prompting for query parameters is a functionality of the Microsoft Access user interface. However, the Microsoft Access ODBC driver doesn't have this capability; therefore, it generates an error message.
May be driver doesn't like table specificator "PendingTransmission."? Have you tried query SELECT Count(Status) AS CountOfStatus
FROM PendingTransmission WHERE (((Name)="RU") AND ((Status)=1)); or even more simple SELECT Count(Status)
FROM PendingTransmission WHERE (((Name)="RU") AND ((Status)=1))
I think result must be the same, so why use unnecessary statements?
Regards
Alex
Well,
I am using the default windows xp MS access driver for odbc. And I couldn't find any info.
All the SQL statements work fine from inside access, just not through the ODBC with Host Monitor.
At this point, I am past my expertise and seem unable to find any info to proceed further.
I might try creating a query in the access database, and query that with the sql commands.
StevenE
I am using the default windows xp MS access driver for odbc. And I couldn't find any info.
All the SQL statements work fine from inside access, just not through the ODBC with Host Monitor.
At this point, I am past my expertise and seem unable to find any info to proceed further.
I might try creating a query in the access database, and query that with the sql commands.
StevenE
Re: Problem with SQL Query
[quote="StevenE"]I am having a problem with 1 SQL Query Command.
SELECT Count(PendingTransmission.Status) AS CountOfStatus
FROM PendingTransmission
WHERE (((PendingTransmission.Name)="RU") AND ((PendingTransmission.Status)=1));
[/quote]
I think, the problem is in quotes in WHERE statement. Try to use 'RU' instead of "RU".
SELECT Count(PendingTransmission.Status) AS CountOfStatus
FROM PendingTransmission
WHERE (((PendingTransmission.Name)="RU") AND ((PendingTransmission.Status)=1));
[/quote]
I think, the problem is in quotes in WHERE statement. Try to use 'RU' instead of "RU".
Re: Problem with SQL Query
You would be correct, the query now works without an error.Yoorix wrote:
I think, the problem is in quotes in WHERE statement. Try to use 'RU' instead of "RU".
Thanks Everyone for all the help.
StevenE