Results 1 to 8 of 8
  1. #1
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38

    calculate discount and gross margin in form

    hello everyone,

    i want to calculate discount and gross margin on a form based on percentage can anyone provide me the code for the attached database.

    thanks
    Attached Files Attached Files

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Can you post a copy in A2003 mdb format.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38
    hi bob,

    please find attached in mdb format.
    Attached Files Attached Files

  4. #4
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38
    hello everyone

    please its very urgent can anyone help me on attached database ,I have cost price on a form for different items first I want to automatically calculate discount on the cost price then apply gross margin in percentage.

    Notepen the attached database in form view

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Not sure of the calculation to be made, but maybe something like the attached db:
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38
    thank you very much bob for your support.

  7. #7
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,543
    Quote Originally Posted by tommyried View Post
    thank you very much bob for your support.
    You're welcome, but does the expression supplied give the correct results.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  8. #8
    tommyried is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    38
    dear bob

    its ok but now I have added one new command button called CLEAR which will clear the type in values but for the text box which we are having an expression cannot be cleared iam using the vba code something like this but its giving me error.

    Private Sub Command33_Click()
    Me.Text22.Value = ""
    Me.Text24.Value = ""
    Me.Text29.Value = ""

    End Sub

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

Similar Threads

  1. Calculate Discount
    By ryansox in forum Reports
    Replies: 2
    Last Post: 02-23-2013, 07:47 PM
  2. Replies: 3
    Last Post: 09-03-2012, 04:54 PM
  3. Replies: 1
    Last Post: 04-25-2012, 01:46 PM
  4. Replies: 1
    Last Post: 03-22-2011, 07:01 PM
  5. Remove Margin from a Pop Out Report
    By 95DSM in forum Reports
    Replies: 9
    Last Post: 12-10-2010, 11:08 AM

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