Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    DariusD is offline Novice
    Windows Vista Access 2000
    Join Date
    Dec 2012
    Posts
    28

    So far I am now able to pull data from product_list into the order_list form, however this only works in the columnar view, which seems to be the default form of the oderlist form, but the orderlist subform on the Main Order form, shows in a datasheet view. I cannot create a drop down list in the dataview form... However what happens is that when I enter data in the actual orderlist form itself.. I can then shut down and reopen the order form and see the info that was posted into the orderlist form.. Obviously this is not the most proficient way of doing it.. So I am still trying to figure out how to get info into the orderlist from via the data sheet view... I learned the code to fill in necessary fields,, but again only when its in the columnar form... example attached below



    Click image for larger version. 

Name:	form6.jpg 
Views:	6 
Size:	57.8 KB 
ID:	10508Click image for larger version. 

Name:	form7.jpg 
Views:	6 
Size:	63.9 KB 
ID:	10509

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Yes, Datasheet view can very much have dropdown comboboxes. Just won't show the dropdown button until in the box.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #18
    DariusD is offline Novice
    Windows Vista Access 2000
    Join Date
    Dec 2012
    Posts
    28

    database attached

    I followed instruction hope you can access the file of the db.
    Attached Files Attached Files

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    The combobox is setup properly but it is hidden on the Datasheet view.

    Right click column header row of the subform and select Unhide Fields.

    Check the cboProdID then Close. Move the subform scrollbar right until you see the combobox.

    You can left click and release on that header to select that column then left click and hold and drag it left.


    A principle of relational database is to not duplicate data. With that in mind, should not have Product_Type, Product_Title fields in OrderItems table. That info is in the Product_List table. For this exercise, probably shouldn't have Product_Price either.


    Did you try setting the Totals row on the subform?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #20
    DariusD is offline Novice
    Windows Vista Access 2000
    Join Date
    Dec 2012
    Posts
    28
    Ok, so number 1, You said I should not include Price in the Orderitems table. So If I don't how do I show the price of the product in the order form, Also Need to be able to show sales, so price should be included. I have not seen order forms, or sales forms that do not include price of the product. Also you said I should not include Title on the OrderItem as well, but again I have not seen sales forms, or order forms, did not include the discription, or name of what you are buying. So how should I have this set up then? Unless your saying its not necessary in the table, but should be included in the report. that I would have to create? Please help Because I am not clear on this. If its an order should it show the price.. and the name of the product....?

  6. #21
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Revew post 13 describing one way to show the related product information on form and also how to display all information on a report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #22
    DariusD is offline Novice
    Windows Vista Access 2000
    Join Date
    Dec 2012
    Posts
    28
    Ok Thanks for the tip on the datasheet that worked perfectly... Now I just need clearer understanding of the point you were making concerning the title, Price, and type. The way I was thinking was that the sales clerk would be on the phone, and the customer would say I want to buy a cd, called Neo, so the sales clerk, would get customer information, and then would go to the orderitem form, and select Neo, list in the Cd section. the price would drop into the form along with the title, and then they would insert the quantity.. Then the subtotal field would show the Price X Quantity.. At the bottom of the form would be the total of all item subtotals in the order.

    If this is not right please feel free to tell me how you think it should work, and how I can improve it...
    Thank you..

  8. #23
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Consider the Price in the Product table as the currentPrice of that Product.
    Consider a field eg AgreedPrice in the OrderItems. That AgreedPrice could be the same value as the Price in the Products table, or it could be a DiscountedPrice because that Customer has bought so many items over the year; or it could be a Clearance Sale Price, Or it could be a nonStandard price for any other reason. The point is you do record a Price in the OrderItems to show what the Selling Price was to that Customer on that Order on that Date. You can include a Notes field if you want for details about the Price.

    But, if you leave Price in the Products table, and do a lookup for all OrderItems for Price in the Products Table, you will get the value in the field currently. So what if you want to raise the price of a Product - what happens to all previous Orders??? What if you want to give Loyalty Discounts to longterm Customers...

    Just a few things to consider.

  9. #24
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Just noticed OrderItems table has Product_ID set as primary key in OrderItems table. That is wrong and causes issues. This table does not have a primary key field. If you want one, need to add an autonumber field called OrderItemID.

    Yes, the setup I suggest will accommodate that scenario. Unfortunately the Totals row isn't allowing Sum of calculated Sub_Total column on form but it does in a query - odd. Didn't remember that being an issue on form. So if you want to show column total on form, will need different setup.

    You have =0 as DefaultValue for Product_Quantity in OrderItems table - remove the = sign.

    Some relationships were set up incorrectly.

    Here is a functioning form. Keep in mind the product price won't update until exit the combobox and the Total won't calculate until move to another record.
    Attached Files Attached Files
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Building out hyperlink with VBA
    By rhewitt in forum Programming
    Replies: 24
    Last Post: 10-24-2012, 11:49 AM
  2. Replies: 4
    Last Post: 07-13-2012, 01:41 PM
  3. building a one to many relationship
    By medused in forum Database Design
    Replies: 3
    Last Post: 06-27-2012, 03:44 PM
  4. Building a FAQ
    By Karin in forum Access
    Replies: 5
    Last Post: 03-07-2011, 11:26 AM
  5. Building
    By jlech1805 in forum Access
    Replies: 1
    Last Post: 11-17-2010, 12:10 PM

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