I have a form (ProcessQuestionnaire) that prompts the user to enter a key, when the search button is pressed a query is executed that finds the ONE record that matches the criteria and a second form (JurorInformation) opens with DBControls showing the information and allowing updates. I have recently added a button to the JurorInformation form called: Remove from Panel. Following is the code I need to execute when the button is selected:
However when I try to run this, I get an error 'At beginning of table'. I've tried removing the Edit command, but then I get an error that the dataset isn't in Edit or Insert mode.
Any idea what's wrong?
Thanks for any ideas!!
Leslie
landrews@metrocourt.state.nm.us
SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned
Code:
procedure TfrmJurorInfo.btnPanelRemoveClick(Sender: TObject);
begin
With JMSData.qryJurorSearch do
begin
Edit;
FieldValues['PANELID'] := '';
FieldValues['STATUSCD'] := 'NR';
Post;
end;
end;
However when I try to run this, I get an error 'At beginning of table'. I've tried removing the Edit command, but then I get an error that the dataset isn't in Edit or Insert mode.
Any idea what's wrong?
Thanks for any ideas!!
Leslie
landrews@metrocourt.state.nm.us
SELECT * FROM USERS WHERE CLUE > 0
No Rows Returned