J
Jason
I am familiar with PHP/MySQL, however have been assigned
to complete a task at work in ASP using an Access
database. I am having troubles with a standard SQL
statement. It simply is not working with Access. If any
one knows how I can accomplish the same result using a
different syntax I would appreciate it.
Here is my sql statement:
SELECT issue_type, count(*) FROM main WHERE id = "44432"
GROUP BY issue_type;
Here is my output from MySQL:
+-----------+----------+
| issuetype | count(*) |
+-----------+----------+
| Billing | 2 |
| System | 3 |
+-----------+----------+
Using access I get a box asking for "issue_type" field,
and get the following output.
+------------+----------+
| issue_type | count(*) |
+------------+----------+
| XXXXXX | 113 |
+------------+----------+
Where XXXXX is I get what ever I type in the box. However
the count is always a count of total records in the
table.
The ASP page produces the following:
Error Type:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
to complete a task at work in ASP using an Access
database. I am having troubles with a standard SQL
statement. It simply is not working with Access. If any
one knows how I can accomplish the same result using a
different syntax I would appreciate it.
Here is my sql statement:
SELECT issue_type, count(*) FROM main WHERE id = "44432"
GROUP BY issue_type;
Here is my output from MySQL:
+-----------+----------+
| issuetype | count(*) |
+-----------+----------+
| Billing | 2 |
| System | 3 |
+-----------+----------+
Using access I get a box asking for "issue_type" field,
and get the following output.
+------------+----------+
| issue_type | count(*) |
+------------+----------+
| XXXXXX | 113 |
+------------+----------+
Where XXXXX is I get what ever I type in the box. However
the count is always a count of total records in the
table.
The ASP page produces the following:
Error Type:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.