This statement works on Access, however it turns out that I also need to replicate this line for a query on MS SQL server. DCount isn't a function on SQL server and the Count function only supports one argument.
How can I convert this line into MS SQL server?
I'm trying to create a horizontal data query in SQL. If I get this to work I must make a cross tab query in SQL.
Thanks in advance.
How can I convert this line into MS SQL server?
Code:
Mfg_Combined" & DCount("*", "tblRecords", "ID <= " & [ID] & " AND [Part_No] = '" & [Part_No] & "'") AS Mfg_Header
I'm trying to create a horizontal data query in SQL. If I get this to work I must make a cross tab query in SQL.
Thanks in advance.