Our Knowledge Base covers a wide variety of technical topics, from the basic to the complex.
How can I set up a numbering system to track quotes that numbers each quote for a customer sequentially, and includes the customer ID and quote number?
You can easily do this in QuickBase. You'll need to create a few new fields in both your customer and quotes tables, relate these tables and then set up a special field to capture this combination number. To do so:
1. In your Customer table, create a Numeric field called "Customer Number".
To learn about creating fields, read https://www.quickbase.com/user-assistance/default.html#adding_a_field.html. Once you've created this field, click its name to open field properties. Then turn on the "Values in this field must be unique" checkbox and click Save.
2. Create a relationship between the Customers table and Quotes table.
In this relationship, each Customer can have many Quotes. Therefore, the "one" is Customers and the "many" is Quotes. In other words, Quotes will be the details table that features a lookup to Customers, the master table. (To learn how to create a relationship see: https://www.quickbase.com/user-assistance/default.html#creating_a_relati...)
3. In the Customer table, create a summary field that captures "# of Quotes".
From the Customer table, click Settings, and then Table-to-table relationships. Locate the relationship and click on its name to edit it. On the Relationship Properties page that opens, click Add summary field, make sure that the "Number of Quotes" radio button is selected and click OK. Accept the name QuickBase gives to the field (or type in your own) and click OK.
4. In the Quotes table, add a lookup field that captures the summary field you just created.
You can do this from within the Relationship Properties page you accessed in the previous step. On the right, click Add lookup field. Within the Lookup field dropdown list, select the summary field you just created (called something like "# of Quotes") and click OK.
5. Create a Snapshot field to snapshot (or capture in time) the value from the lookup field you just created.
In the Quotes table, create a Numeric field called "Snapshot". Click on this field's name to edit its properties. Under Advanced, check "Get this field's value from a lookup field and don't allow the value to change." From the dropdown list, select the lookup field. (For more on snapshots see https://www.quickbase.com/user-assistance/default.html#setting_up_snapsh...)
6. Now, tie it all together by creating a Formula field in the Quotes table.
In the Quotes table, create a new Formula - Text field called QuoteID (or whatever you wish). Click the field's name to open its properties. enter the following in the formula box: [Related Customer] & "-" & [Snapshot] (See https://www.quickbase.com/user-assistance/default.html#using_formulas_in... for more on using formulas.)
From this point on, QuickBase will sequentially generate a number for each Quote which includes the customer number. So if customer number 101 had two Quotes, these Quote records will be numbered 101-1 and 101-2.
Browse by Category
Knowledge Base Categories
- Accounts (35)
- Application (45)
- E-Mail (7)
- Fields (42)
- Forms (19)
- Formulas (18)
- General (72)
- Other Product (7)
- Pages (1)
- Product (5)
- Reports (15)
- Roles (4)
- Search (1)
- Tables (6)