Robbydobbs Posted April 9, 2003 Posted April 9, 2003 I have two layouts in the same database. One is miscellaneous and the other is data entry. Miscellaneous has a field call misc_desc and data entry has a field called data_desc. Now as it stands when I print out an invoice only the information in the data entry field data_desc is printed. But now I want to say that if the layout miscellaneous has information in the misc_desc print that information out on the invoice, but if the layout data entry has information in the field data_desc print that field out on the invoice. Both layouts would never have information in their fields at the same time, its either going to be one or the other. Is this possible to do and if so, how would I do it?
Wendy T Posted April 10, 2003 Posted April 10, 2003 create a new calc field to check which field is holding data. If(IsEmpty(misc_desc), data_desc, misc_desc) then use this field on your invoice layout. cheers, Wendy
CobaltSky Posted April 10, 2003 Posted April 10, 2003 Hi Robbydobbs, Both layouts would never have information in their fields at the same time, its either going to be one or the other If that's true, then why have separate fields for the descriptions? You may well be able to simply place the same description field on both layouts - in which case the description will always appear on the invoice regardless of which layout it was entered on. Notwithstanding Wendy's suggestion, unless there is something else you haven't told us, a 'one field for both layouts' approach would seem to be simpler all 'round.
Robbydobbs Posted April 10, 2003 Author Posted April 10, 2003 Excellent Wendy. Thank you for the great insite. That's exactly what I needed. Thanks again.
Recommended Posts
This topic is 7902 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