using a variable to define database relations

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
LMay_(Guest)
Posts: 1
Joined: Tue Oct 10, 2017 12:44 pm

using a variable to define database relations

Post by LMay_(Guest) » Thu Jun 21, 2001 10:15 am

I use a ticket-sales database, and it has a "mainsale" database, which I use as the master db, a customer db link, master show info link, and multiple seating chart links for each different show. For years I have had to set up separate reports for each different show, because each is linked to its own seating chart that tracks which price codes and which customer # are attached to the purchased seat. I was hoping that version 9 would allow me to somehow tell R&R to link to whatever database was defined in the "mainsale" variable field, "chartname." But I can^t figure out how to do it - is it still not possible or am I having brain freeze?____While we^re at it, my life would be made much easier if it were possible to have a variable that would count the number of copies printed, so I could have R&R print tickets for multiple price categories that are sold to the same person, in one record: currently I have to have employees enter separate records for each price category purchased for general admission shows in order for R&R to not print all their tickets at the same price code. In other words, I would like to tell R&R to print the number of records that appears in the field "adult_tix", then go to "child_tix" and print the number of records in that field, etc. Is that possible?____Thnaks!

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: using a variable to define database relations

Post by kfleming » Fri Jun 22, 2001 4:52 am

You could set up a relation to each seating chart database and then do a conditional field that brings back the appropriate linked database field based on the value of the pointer field.______Kathleen__R&R Support

FRED_EMMERICH_(Guest)
Posts: 170
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: using a variable to define database relations

Post by FRED_EMMERICH_(Guest) » Thu Jun 28, 2001 4:28 pm

I have used the .dll to dynamically change table names at run time and my app supplies those names to R&R. If you don^t program, then this won^t work, or if those different related tables are not the same, since the report will be looking for certain fields.

Post Reply