Page 2 of 2 FirstFirst 12
Results 16 to 30 of 30
  1. #16
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929

    Forms are not setup as I suggested. Customer form should not be a subform. It should be the main form. Then Order form is on Customer form, then OrderLine form is on Order form. Three levels of forms, synchronized at each level with Master/Child properties of the subform containers. Anything else will require code or manually opening and closing independent data entry forms.

    1. set the Default View property to something other than Continuous

    2. fix the form arrangement before addressing this issue

    3. OrderLine form in Datasheet view click the Totals (looks like sigma) button on the ribbon, otherwise will need code
    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.

  2. #17
    PRINCE SWAGG is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    17
    So do over the forms?

    Create a customer, then order sub form, then orderline sub/subform?

  3. #18
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Delete Customer subform from Order form.

    Rename Customer subform to just Customer.

    Put a subform container control on Customer.

    This container Source Object would be Orders Form.
    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.

  4. #19
    PRINCE SWAGG is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    17
    What do u mean by "Put a subform container control on Customer."??

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    How did you create the Customer subform on the Order form? This is a container control.

    Look at Access Help for guildelines on how to create a subform on a form.

    Basically, you need to select the subform/subreport container control from the design tools and drag it to the form then set the Source Object property to the form the container will hold.

    You can use design wizards to help build forms and set up controls, but I don't like the wizards. Again, Access help has info.

    This is elementary Access designing. Sounds like you need to go through some basic tutorials.
    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.

  6. #21
    PRINCE SWAGG is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    17
    Well i know how to create the forms and sub/forms, i just was not sure what you meant by container.

  7. #22
    PRINCE SWAGG is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    17
    I got mixed and sort of found my way but i not able to get the total of the TOTAL ORDER COST.

    Any assistance?

  8. #23
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Open OrderLine form in Design View set Default view to Datasheet View, save the form.
    Switch to Form view.
    Click Totals on the ribbon Home tab, Records section.
    In the bottom row, under the ExtendedPrice column, select Sum from the dropdown.
    Close the OrderLine form and it should save with this Totals setting and should be presented when you open the Customer main form.
    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.

  9. #24
    PRINCE SWAGG is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    17
    That actually helped BUT could you believe for the product total cost which was the extended column you created is only getting the option for a count and not a sum or average.

    I am getting sum for quantity and unit price but not for product total cost hmmm.

  10. #25
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I've never used this Totals feature before so am learning too. Apparently, calculated result in textbox is seen as a string value. I tried using the Val function in textbox and that didn't help either. So I built a test query and did a calc there, then bound a textbox to this constructed field. Now the math functions are available for this field. I don't have your project with me to try but this should translate there.
    Last edited by June7; 06-21-2011 at 02:35 AM.
    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.

  11. #26
    PRINCE SWAGG is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    17
    How did you do that query? Because i tried but i was not successful.

    I have attached the database, Please help as soon as you can because i have to present it tomorrow.

  12. #27
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    OrderLine form in design view
    Open the RecourdSource query builder
    Type this in a Field cell - ExtendedPrice: [Unit Price]*[Quantity]
    Close builder and save changes
    Change Product Cost textbox ControlSource to this newly constructed field (ExtendedPrice)
    Save form
    Open form in Form view
    Click on any row
    Click on Totals on the ribbon
    Click on Total row under Product Cost column, set calc
    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.

  13. #28
    PRINCE SWAGG is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    17
    Thanks so much, i feeling so happy now, i was getting so worried but i have one more question.

    I am getting the total for sure but in the ORDERS TABLE i have TOTAL ORDER COST. Is it possible to get the total in that field?

    Or do you have another possible solutions, like after the employee save the cust details and order detail probably a report or something, can show the full order? eg, the cust details, order details with the total cost of the order.

    THANKS SO MUCH FOR YOUR ASSISTANCE.

  14. #29
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Would require code and not recommended. Aggregate (summary) calculated results should not be saved. This value should be generated in a report (an Invoice or some other output) at run time and NOT saved to table. Use report Grouping & Sorting with summary calcs. And that is topic for a new thread if you encounter issues.
    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.

  15. #30
    PRINCE SWAGG is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2011
    Posts
    17
    Understood and thanks again.

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

Similar Threads

  1. Security Advice
    By jpkeller55 in forum Access
    Replies: 6
    Last Post: 02-18-2011, 08:22 AM
  2. Table creation advice
    By Padawan in forum Access
    Replies: 6
    Last Post: 01-27-2011, 06:16 PM
  3. Form advice
    By rvangend in forum Forms
    Replies: 4
    Last Post: 01-17-2011, 01:59 PM
  4. design advice
    By Sarge, USMC in forum Database Design
    Replies: 4
    Last Post: 10-06-2010, 07:53 AM
  5. Need advice on what I have so far
    By rumplestiltskin in forum Database Design
    Replies: 2
    Last Post: 05-25-2006, 12:48 PM

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