I am having trouble passing a customer # in my database. Here is what I am doing. I have 2 sets as follows:
#1 Customer Info -> Invoices (To view and create customers and review past invoices)
#2 Invoices -> Customer Info (To create new invoices)
For a little background, we use this for our service department. We store a lot of information in the Customer Info table beyond name. We have all the information on the product they purchased, serial #, etc. We are generally using a form based on set #1 looking up customers or adding them. I then have a create invoice button from that form which opens a form based on set #2. I want to be able to pass the customer # to this invoice form in set#2 and fill the customer # in the invoice table without having to look it up again. We already have that information from the previous form.
The only way that I could get this to work was to open the set #2 field rule design and set the default value for customer # to a global variable. The variable gets filled when you push the button to create the invoice. It does work, but Alpha does not like it. When I open the field rules for the invoice table individually, I get an error message saying "Cannot use function in this context".
Is there a way to do what I want other than the work around I found which doesn't seem to Kosher?
#1 Customer Info -> Invoices (To view and create customers and review past invoices)
#2 Invoices -> Customer Info (To create new invoices)
For a little background, we use this for our service department. We store a lot of information in the Customer Info table beyond name. We have all the information on the product they purchased, serial #, etc. We are generally using a form based on set #1 looking up customers or adding them. I then have a create invoice button from that form which opens a form based on set #2. I want to be able to pass the customer # to this invoice form in set#2 and fill the customer # in the invoice table without having to look it up again. We already have that information from the previous form.
The only way that I could get this to work was to open the set #2 field rule design and set the default value for customer # to a global variable. The variable gets filled when you push the button to create the invoice. It does work, but Alpha does not like it. When I open the field rules for the invoice table individually, I get an error message saying "Cannot use function in this context".
Is there a way to do what I want other than the work around I found which doesn't seem to Kosher?
Comment