david7777777777
Programmer
Can someone point me in the right direction as to how I need to code and if statement for my grid if the search results in no recorde returned? I've got a simple SQL statement in my record set as follows:
SELECT LastName, FirstName, MiddleInitial, Department
FROM tbl_employees
WHERE Department = ?
I'm setting the parameter in code from a listbox DTC as follows:
Sub lstDepartments_onchange()
rsEmployees.setParameter 0,lstDepartments.getValue()
End Sub
Then I've got a command button opening the record set. If no records are returned, I'd like the page to remain in an appropriate mode to be able to immediately handle another attempt at a search with input by the user and prompt the user to "try again" with a message that says something like "no records found, try again..."
SELECT LastName, FirstName, MiddleInitial, Department
FROM tbl_employees
WHERE Department = ?
I'm setting the parameter in code from a listbox DTC as follows:
Sub lstDepartments_onchange()
rsEmployees.setParameter 0,lstDepartments.getValue()
End Sub
Then I've got a command button opening the record set. If no records are returned, I'd like the page to remain in an appropriate mode to be able to immediately handle another attempt at a search with input by the user and prompt the user to "try again" with a message that says something like "no records found, try again..."