Results 1 to 3 of 3

Thread: I need ideas please

  1. #1

    Thread Starter
    Addicted Member Bazzlad's Avatar
    Join Date
    Jun 2003
    Posts
    227

    I need ideas please

    I'm making a database which sells phones.

    I have on my table, the model, make IMEI(Primary key) and a check box Sold.

    when a phone is sold the check is checked, removing it from the Stock table.

    I want to be able to sell more than one phone at once. from one form.

    I also want it to print an invoice....

    Any ideas???
    *And you'll see, Everything you stand for is fake*
    http://www.rhesusrock.com

  2. #2
    New Member pkirk25's Avatar
    Join Date
    Oct 2003
    Posts
    4

    Don't use a check box

    You will find the check box too crude for sales data. If you want to be able to produce useful business information, you need to record sales in a table of sales. Even if you don't ever need to use this, its also the easiest way to update your stock records.

    Make a table of sales and a table of phones. In the table of phones, have a link field that is the foreign key of table of sales.
    This field defaults to Null.

    For your user, you have a sales form with a subform of phones. It starts as an empty subform but they populate it with the phones being sold.

    After the sale is logged in table of sales, each phone will have its foreign key for table of sales populated. Run a SQL query that removes all phones where this foreign key is not null from your stock-list.

    I hope I explained this clearly. If not, I can do a small demo in Access 2000.
    Last edited by pkirk25; Oct 8th, 2003 at 05:40 PM.

  3. #3

    Thread Starter
    Addicted Member Bazzlad's Avatar
    Join Date
    Jun 2003
    Posts
    227
    Thank you, but that bit I already have (but with the checkbox)
    In my version, the tbls are phones and sold.
    When a phone is sold the checkbox is ticked, (the stock form only shows un ticked phones)
    and the sold phones IMEI (Primary key) is added to the tbl sold.
    My problem was I couldnt figure out how to do multiple sales that well, but I have a plan which I'll try today, and If it works I'll let you know!
    Cheers anyhow
    Bazz
    *And you'll see, Everything you stand for is fake*
    http://www.rhesusrock.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width