Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to update all records? 1

Status
Not open for further replies.

Mandy_crw

Programmer
Jul 23, 2020
585
PH
Hi everyone... may i ask help on updating my table using cursor.... i have cursor named CsrSms that has checkbox for multiple selection... and in my exit button i have the following codes...
Code:
 UPDATE sms SET special = CsrSms.special WHERE idnum == CsrSms.idnum

My problem is only the last record is updated even if ive chosen multiple checkboxes... I also used do while not eof ()
Code:
 DO WHILE !EOF()
	IF sms.grade == csrsms.grade
		UPDATE sms SET special = CsrSms.special WHERE idnum == CsrSms.idnum
	ENDIF 
	SKIP
ENDDO

but still only the last checkbox is updated... Please help.... Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top