> heres the few lines of code i have > tblCompany.Edit; > tblCompany.FieldByName('name').Value := txtNewValue.Text; > tblCompany.Post; > txtNewValue.Text := ''; > txtHoneyPot.SetFocus; > btnSaveEdit.Visible := false; > txtNewValue.Visible := false; > > please lend me the benifit of your decades of experience and knowledge > here
Gidday Tracey. Is txtHoneyPot a TLabel component? If it is, then it does not receive focus but passes it on to either the component set up to receive it (txtHoneyPot.FocusControl), or the next component (which I suspect will become invisible on the next line). Steve --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/