Board index » delphi » New record when form 'showed'

New record when form 'showed'

Hi I'm a new newgroup user - I'm hoping this reaches someone.

When an event calls or shows a data entry form (using standard DB &
Navigator components), how can I make sure it opens with an new record
instead of the last one entered?  Thank you

 

Re:New record when form 'showed'


In article <MPG.ee8befa5049e852989...@news.netspace.net.au>, dra...@netspace.net.au (Andrew Groat) wrote:

Quote
>Hi I'm a new newgroup user - I'm hoping this reaches someone.

>When an event calls or shows a data entry form (using standard DB &
>Navigator components), how can I make sure it opens with an new record
>instead of the last one entered?  Thank you

Call <dataset>.Insert before you show your form.

The Graphical Gnome (r...@ktibv.nl)
Sr. Software Engineer IT Department
-----------------------------------------
The Unofficial Delphi Developers FAQ
http://www.gnomehome.demon.nl/uddf/index.htm

Other Threads