juststo Posted August 30, 2006 Posted August 30, 2006 I have a database that has a number of records, and when I print one of them, I would like to go into preview mode and print the record I am viewing. Now when I go into preview mode, it lists all of the records I am currently browsing, and I need to find the one I want to print. What is the best way to script a find that goes to the current record I am working on when I enter preview mode? I want to eliminate the manual search. This may sound confusing, but it seems like it would be a simple thing.
Ender Posted August 30, 2006 Posted August 30, 2006 Is the important thing to Print only the current record or is the important thing to preview the current record? The solutions could be different.
bruceR Posted August 30, 2006 Posted August 30, 2006 Assuming that the current record has a unique identifier, pseudocode: Set variable [$recordID; RecordID] new window enter find mode set field [RecordID; $recordID] Perform Find Set error capture on enter preview mode Print[] Close window
juststo Posted August 30, 2006 Author Posted August 30, 2006 Bruce, Thanks, that seems to work out. I was almost there but couldn't quite figure out the set variable function. Your answer clarified it for me and also showed me I was on the right track. Thanks again. Juststo
John Mark Osborne Posted August 30, 2006 Posted August 30, 2006 I would recommend an easier approach: New Window [] Show All Records Omit Record Show Omitted Only Enter Preview Mode [Pause] Close Window [current window]
Recommended Posts
This topic is 6662 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