Code:
strSQL = "SELECT [T-02-CONTACT].PWDON, [T-02-CONTACT].PWDFRAME, [T-02-CONTACT].FRMNAME FROM [T-02-CONTACT] " _
& "GROUP BY [T-02-CONTACT].PWDON, [T-02-CONTACT].PWDFRAME, [T-02-CONTACT].FRMNAME " _
& "HAVING ((([T-02-CONTACT].PWDON)=Yes) and ([T-02-CONTACT].PWDFRAME)) " _
& "ORDER BY [T-02-CONTACT].PWDFRAME DESC;"
With rst
.Edit
![FRMNAME] = FRAMENAME
.Update
End With[/code]
I need to update a column in a table. I try to do this via a group by SQL, otherwise he will update to much lines. Is there a way still using an group by to select the data and afterwards to update the table ? Now he is refusing this, because you can't update via a group by SQL.
pat