hello.. i have a problem about button for checkiing to field in database acces.. what there can help me ?

Comments

  1. hmm there is a form question , 2 button yes or no and a db text, this db text consit data question  . i want to  2 button yes or no checking to field(yes/no) in tabel database acces if in field valuable T0.. then show question in dbtext on the form same. or if  in field valuable H0.. then show result in form result

    ReplyDelete
  2. If you needs to call another form which different from form that you lied your 2 buttons there you must use

    with TFormName.Create(self) do
    Begin
    ShowModal;
    End;

    ReplyDelete
  3. i already try but no appropriate with my plan..in the form result/answer there is db text and show result./answer diffrent with the queston

    this is example code 

    procedure Tformtanya.Button2Click(Sender: TObject);
    begin
    tbBagian.Next;
    if dbtext1.Field.AsString = 'T01' then
    dbtext1.Field.DataSet.Next
    else
    begin
    Formanswer := TFormanswer.Create(nil);
    Formanswer.showmodal;
    Formanswer.free;
    end;
    end;

    ReplyDelete
  4. Which part from your code that show error warning?

    ReplyDelete
  5. no error mas,, but this run no approriate with my plan :(

    ReplyDelete

Post a Comment