× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am not sure of what it is you are doing. Can the Account Number field in the SFL field be entered or altered by a user? If so, is there a requirement to be sure the newly entered number is ( or is not) a recognized and existing Account Number?

If it is as I am guessing it to be, it would seem the easier solution is to create a data structure element of the subfile fields and then make the an array of the subfile. That has a lot of benefits once you do the initial set up. One benefit is the ability to sort the subfile ascending or descending, by any column in the subfile. Another benefit is the Undo function becomes easy to implement.

To your point though, when the user keys the Enter key it can make the entire edit processing much easier.


On 9/29/2014 12:20 PM, Englander, Douglas wrote:
I have a subfile that is used for data entry. One of the columns in the subfile is an account number. An account number can only appear in the subfile once (i.e. Unique key). Does anyone know how to check for that, other than writing the subfile to a temporary uniquely keyed disk file, and monitoring for a duplicate key error?

Thank you,

Doug



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.