L
Lee Roper
I'm trying to create a SQL statement in my VBA code that
will select a field called Claimno from my Data table and
group all the records by the Claimno field. It works fine
as a query I build in Design View, but when I build it as
a SQL statement, it tells me there is an error in the FROM
clause. Here's the code I wrote:
Dim claimnoSQL as string
claimnoSQL = "SELECT Claimno FROM Data" & _
"GROUP BY Claimno"
I've tried several different variations, but I can't get
it to work. Can someone tell me what I'm doing wrong?
Thanks,
Lee
will select a field called Claimno from my Data table and
group all the records by the Claimno field. It works fine
as a query I build in Design View, but when I build it as
a SQL statement, it tells me there is an error in the FROM
clause. Here's the code I wrote:
Dim claimnoSQL as string
claimnoSQL = "SELECT Claimno FROM Data" & _
"GROUP BY Claimno"
I've tried several different variations, but I can't get
it to work. Can someone tell me what I'm doing wrong?
Thanks,
Lee