Results 1 to 9 of 9
  1. #1
    Kaloyanides is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Location
    Arlington, MA
    Posts
    51

    How to create a customer product profile/template based on past purchases? Sales Processing...

    In sales order processing database, I'm trying to have all of the products each customer purchased in the past show up in subform or dropdown with last price.

    Main Form - frmSalesOrders - tblSalesInvoiceHeaders
    Sub Form - ItemsPanel - qrySalesInvoiceItems (tblCompanies joined with tblSalesInvoiceItems by CompanyNum)

    I can't think of a way to make this happen.

    Easy thing? If not, anyone aware of a free template that I could download?



    I need to obviously be able to record the sale and have all other items available (not just the items they've bought in the past).

    Any advice would be greatly appreciated!

    Have a great day!

    Jason

  2. #2
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Is your subform (ItemsPanel) continuous? It should be and then sort it by datesold, desc.

    HTH.

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    If you store the information you can show it. So firstly, is that stored?

    When a transaction happens what information is then saved about the transaction?

    so lets assume the information you need is stored... you need a way to pick only the information you want to see. How do you want to do that? you could have a big list of all transactions with some filters. you could have a list of companies that you select then open a new form with just their info. however you want to show it or I should say however you want to define the query criteria.

  4. #4
    Kaloyanides is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Location
    Arlington, MA
    Posts
    51
    First you lookup the company, then you click the sales button that opens an order entry form. The main order entry form has the customer info, delivery address, ref#, etc. There is then a subform for the order entry part. It is a continuous form. So there is the companies table, invoiceheader table and invoiceitems table. I capture the company number in the invoiceitems table.

    My problem is, if I create a query on the subform to filter and show only the items the customer has ordered in the past, it's then not going to let me add new items. Right?

    Say we have 1,000 items and the customer has only ordered 10 in the past. I'd like those 10 to show with 0 QTY but also be able to add new items.

    Do I have to manage a separate table for the templates? Then, do a double-click to add a new item going forward?

    Thanks!

  5. #5
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Quote Originally Posted by Kaloyanides View Post
    First you lookup the company, then you click the sales button that opens an order entry form. The main order entry form has the customer info, delivery address, ref#, etc. There is then a subform for the order entry part. It is a continuous form. So there is the companies table, invoiceheader table and invoiceitems table. I capture the company number in the invoiceitems table.

    My problem is, if I create a query on the subform to filter and show only the items the customer has ordered in the past, it's then not going to let me add new items. Right?

    Say we have 1,000 items and the customer has only ordered 10 in the past. I'd like those 10 to show with 0 QTY but also be able to add new items.

    Do I have to manage a separate table for the templates? Then, do a double-click to add a new item going forward?

    Thanks!
    What I would do is have 2 subforms. One for new order entry, and one to review previous orders. I'm not sure why you want to see previous orders with 0 QTY.?

    HTH.

  6. #6
    Kaloyanides is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Location
    Arlington, MA
    Posts
    51
    That's not a bad idea...

    I was just thinking it would be cool to have the order entry screen auto populate with all of the items they've purchased in the past but with zero qty's so the order taker could just change the zero to whatever qty the customer wants...

    I do like the idea of a separate form showing the previously purchased items. I think that would be the easiest to accomplish.

    Thanks!

  7. #7
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Quote Originally Posted by Kaloyanides View Post
    That's not a bad idea...

    I was just thinking it would be cool to have the order entry screen auto populate with all of the items they've purchased in the past but with zero qty's so the order taker could just change the zero to whatever qty the customer wants...

    I do like the idea of a separate form showing the previously purchased items. I think that would be the easiest to accomplish.

    Thanks!
    You're welcome! What you could do is have a check box or button on the previous sales form that would run a query to add that item to a new order.

  8. #8
    Kaloyanides is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Location
    Arlington, MA
    Posts
    51
    How would I do that? Is it complicated? I did a little searching but can't find code for one subform to another. If you have an example you could share, great, if not, I'll keep searching. Appreciate your help!

  9. #9
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Quote Originally Posted by Kaloyanides View Post
    How would I do that? Is it complicated? I did a little searching but can't find code for one subform to another. If you have an example you could share, great, if not, I'll keep searching. Appreciate your help!
    Nah, not complicated, create an append query, using the query you use to pull a customer's previous sales and append to your new order table, the item # and customer # and whatever else you need, the price, etc. Set the criteria in the append query to the customer # and item # selected on the form.

    I'm afraid I'm not being very clear hear. I'll upload something for you to look at shortly.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 04-20-2016, 03:41 AM
  2. Replies: 5
    Last Post: 03-22-2016, 04:06 PM
  3. Replies: 11
    Last Post: 11-06-2014, 06:01 PM
  4. Replies: 2
    Last Post: 12-26-2013, 11:23 AM
  5. Variation of past and current sales
    By v!ctor in forum Access
    Replies: 2
    Last Post: 03-16-2013, 09:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums