kcrossley Posted March 5, 2002 Posted March 5, 2002 Hello, I have two related databases, [Customers] and [Publications]. To switch between them I'm using the "Go to Related Record" command. This works fine if related records exist. However, when a related record does not exist I want to create a new record. I'm assuming I need a conditional statement to trigger this. Which command should I use and how should it look? Thanks, Kelly
danjacoby Posted March 5, 2002 Posted March 5, 2002 Best way to create a related record is through a portal. That way, you can be certain that the relationship is properly created. If you just want to create a new record in the other file, create a script in that file that creates a new record, then in the first file create a script that performs an external script -- you can guess which one. HTH, Dan
LiveOak Posted March 5, 2002 Posted March 5, 2002 You can detect an error resulting from the "Go to related records" failure and use that to trigger the creation of a new record. Go to related record If (Status(CurrentError) = 101 Perform Script (your new record script) else . . . end if
Recommended Posts
This topic is 8355 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