RATE THIS ANSWER
0
Click to Vote:
0
0
the below code will check the table for the employee number(text1.text) I assumed the first field in the table is empno.
DataEnvironment.RsEmp.movefirst
a = 1
while DataEnvironment.RsEmp.EOF = false
if DataEnvironment.RsEmp.fields(0) = text1.text then
msgbox("Empno found")
a= 0
exit do
else
DataEnvironment.RsEmp.movenext
end if
wend
if a = 1 then
msgbox("Empno not found")
end if
Instead coding like this we can use
DataEnvironment.RsEmp.find "emp_no= '"+text1.text+"'"
text2.text = DataEnvironment.RsEmp.fields(1)
text3.text = DataEnvironment.RsEmp.fields(2)
You can get the record information as above
Filter
DataEnvironment.RsEmp.find "dept= '"+text1.text+"'"
It will position to the first record of dept = text1.text
We can move to the records matching by giving
DataEnvironment.RsEmp.movenext
Last Answered:
Nov 21 2008 8:06 AM GMT by Try it 
85 pts.