S
Stapes
Hi
I got this error: -
Run-time error '2342':
A RunSQL action requires an argument consisting of an SQL statement.
using DoCmd.RunSQL strSQL, where STRSQL =
SELECT TM_Customers.PK_Comp, TM_Customers.Co,
TM_Customers.FK_SchoolType, TM_Customers.TLK_Cat, TM_CompContact.Cat,
TM_Customers.Country, TM_Customers.Cnty, TM_Customers.Town,
TM_Customers.Pocd FROM TM_Customers INNER JOIN TM_CompContact ON
TM_Customers.PK_Comp = TM_CompContact.FK_CompID WHERE
(((TM_Customers.TLK_Cat)= 'BU') OR ((TM_CompContact.Cat)='BU'));
The SQL works fine in a query.
Any ideas?
Stapes
I got this error: -
Run-time error '2342':
A RunSQL action requires an argument consisting of an SQL statement.
using DoCmd.RunSQL strSQL, where STRSQL =
SELECT TM_Customers.PK_Comp, TM_Customers.Co,
TM_Customers.FK_SchoolType, TM_Customers.TLK_Cat, TM_CompContact.Cat,
TM_Customers.Country, TM_Customers.Cnty, TM_Customers.Town,
TM_Customers.Pocd FROM TM_Customers INNER JOIN TM_CompContact ON
TM_Customers.PK_Comp = TM_CompContact.FK_CompID WHERE
(((TM_Customers.TLK_Cat)= 'BU') OR ((TM_CompContact.Cat)='BU'));
The SQL works fine in a query.
Any ideas?
Stapes