I have a program with two forms. Form 1 is a menu Form that calls Form 2. Form 1 contains an ADOConnection, an ADOTable and a DataSource. These connect to an Access database of 200 records of names and other fields.
Form 2 contains a DBGrid that displays the names. Also on Form 2 there is a DBEdit and three Edits. When a name is selected from the DBGrid the DBEdit displays that name. I then enter values into the three Edits. I have a Post Button with the following:
procedure TForm_Contribute.Button_PostClick(Sender: TObject);
begin
With Form_Main.ADOTable1 do
begin
Cash := Edit_Cash.Text;
Check := Edit_Check.Text;
CheckNum := Edit_CheckNum.Text;
edit;
FieldByName('EnvCash').AsString := Cash;
FieldByName('Check').AsString := Check;
FieldByName('CheckNum').AsString := CheckNum;
post;
end;
end;
When I click Post I get the following message:
…. Exception class EOleException with message, ‘Query is to complex’.
I have been programing in Delphi using databases and ADO for 10 years and have never seen this problem before.
HELP!
Form 2 contains a DBGrid that displays the names. Also on Form 2 there is a DBEdit and three Edits. When a name is selected from the DBGrid the DBEdit displays that name. I then enter values into the three Edits. I have a Post Button with the following:
procedure TForm_Contribute.Button_PostClick(Sender: TObject);
begin
With Form_Main.ADOTable1 do
begin
Cash := Edit_Cash.Text;
Check := Edit_Check.Text;
CheckNum := Edit_CheckNum.Text;
edit;
FieldByName('EnvCash').AsString := Cash;
FieldByName('Check').AsString := Check;
FieldByName('CheckNum').AsString := CheckNum;
post;
end;
end;
When I click Post I get the following message:
…. Exception class EOleException with message, ‘Query is to complex’.
I have been programing in Delphi using databases and ADO for 10 years and have never seen this problem before.
HELP!