Friends,
Ver - PB 7.0
In the main window the user will select the male or female from the dropdown list.
and the user will import the file which contains rollnumber and fees in to the datawindow.
i have the validate button. when the user clicks the validate button. the system should check the *** of the students either male or female as per the selection from the main window.
if the main window has male and the datawindow contains any female rollnumbers the system should show the message with the rollnumbers.
Already i am validating the rollnumber for duplications. its working fine...
i want to do the same kind of stuff for the male, female validation as per the selection from the main window.
how can i alter the below code for my requirement?
dw_master.SetSort ("rollno A")
dw_master.Sort()
dw_master.SetFilter("rollno = rollno[-1] or rollno = rollno[1]")
dw_master.Filter()
if dw_master.RowCount() > 0 then
MessageBox('Duplicate Rows','Check the Duplicate Roll numbers',StopSign!,OK!)
Return 1
end if
thanks