For Programmers: Free Programming Magazines  


Home > Archive > Clarion > April 2007 > Re: Two records with one "insert"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Two records with one "insert"
pblais@odstrategies.org

2007-04-25, 6:55 pm

Well you are then faced with the issue of if you get into the update
form on the first record and in the ThisWindow.Kill it didn't add the
first one. It means you really don't want to add the second one now.
You would trap that condition in the browse procedure where you did
the insert. You really don't want to add the second if you didn't add
the first.

Generally without knowing it's hard to say but adding two records
seems like you have a problem in the design. It may not be but is
suspect. If it really isn't a design problem I would trap it in the
form in ThisWindow.Kill where you are very sure the record is going to
be added then do an add to an Alias of the table so you don't trash
the buffer of the first.

Design problems tend to manifest in these kinds of serious issues.
Alias tables can help this might be one of those times.

On 25 Apr 2007 12:59:24 -0400, "Stafylidis Vladimiros"
<okathes2@otenet.gr> wrote:

>two records in the same file (one).

---------------------------------------
Paul Blais - Hayes, Virginia
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com