hi guys,
i am new in tek-tips and need your help. I have a form with datagrid on it and I want to use the first column of the dtagrid as a Counter which shows the row number(SiraNo is thename of the column). I have written this code (below), under the command (in dataenvironment) but it is not counting, isntead of counting it puts 1 to all of the rows...but it should go like 1..2..3..
if anyone can help i really appreciate.
thanks,
kirpowki
SELECT COUNT(*) AS SiraNo, KayitNo AS KNo, Birim,
Bolum AS Bölüm, KasaMarka AS KMarka, CPU,
SorumluP AS KullaniciP, SenetAlan AS SenediAlanP
FROM tblPC
GROUP BY KayitNo, Birim, Bolum, KasaMarka, CPU, SorumluP,
SenetAlan
ORDER BY KayitNo
i am new in tek-tips and need your help. I have a form with datagrid on it and I want to use the first column of the dtagrid as a Counter which shows the row number(SiraNo is thename of the column). I have written this code (below), under the command (in dataenvironment) but it is not counting, isntead of counting it puts 1 to all of the rows...but it should go like 1..2..3..
if anyone can help i really appreciate.
thanks,
kirpowki
SELECT COUNT(*) AS SiraNo, KayitNo AS KNo, Birim,
Bolum AS Bölüm, KasaMarka AS KMarka, CPU,
SorumluP AS KullaniciP, SenetAlan AS SenediAlanP
FROM tblPC
GROUP BY KayitNo, Birim, Bolum, KasaMarka, CPU, SorumluP,
SenetAlan
ORDER BY KayitNo