Graham S Posted November 26, 2005 Posted November 26, 2005 I have a script that adds a new record into a table. The script is called from a different database and a code is passed in as a script parameter. How do I check to see if the record has already been added? I figured I needed to do a find, but I cannot get it to accept the script parameter as the argument to the find.
IdealData Posted November 26, 2005 Posted November 26, 2005 Have a relationship from db1 using your "code" as the relationship key. You can then check for the COUNT of related records before executing the rest of the script. I'm assuming that the "code" is unique.
LaRetta Posted November 26, 2005 Posted November 26, 2005 Actually, using IsEmpty(childID) would be quicker than Count() - which has to count all related. And according to FM, the IsEmpty() test is perfect to check for related records. Just a thought ... :wink2:
Recommended Posts
This topic is 7273 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now