Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Bellablu is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Nov 2011
    Posts
    9

    Database Help Please

    Hi,



    I am creating a database for work & I an having trouble getting it to do what I want. I have three money related cells, currently I have them as text, but I have also tried writing an expression whith them as currency & as a number.

    COST, GST & TOTAL

    The cost figure is what is on the reports that I import into the database,

    I have created a Yes/No for "GST Charged"

    What I want to happen is, when I click the "GST Charged" box I want the GST field to calculate: [COST]/10, I have tried to develop expressions in the table & in the form but can not get it to work. Can anyone please advise me of the correct expression & where to put it, ie: in the table or the form & which cell.

    I am currently using Access 2003

    Thank you in advance.
    Last edited by Bellablu; 11-27-2011 at 01:21 AM. Reason: More info

  2. #2
    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,738
    Could you describe your application in terms of your business? For those of us that are not familiar with your environment or your business, it would help if we knew what you were trying to do. Once we have some familiarity, then someone hopefully could advise on how to accomplish it.

  3. #3
    Bellablu is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Nov 2011
    Posts
    9
    Ok I will be importing depatmental financial expenditure which is downloaded from a SAP aspplication through Excel & into the database. That process works well.

    Some transactions are purchases which incur GST, other transactions are payments to employees which are GST free, so I hoping to be able to just hit a check box to calculate the GST for the transactions I choose.

  4. #4
    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,738
    Great. Do you have a method to determine which transactions are purchases and which are payments to employees?

  5. #5
    Bellablu is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Nov 2011
    Posts
    9
    Visual identification/user input of the data that is brought across, thats why I created a yes/no checkbox, a check yes for GST & then have it automatically calculate the 10% of the cost (which is imported) in the GST field.

    Hope that makes sense.

  6. #6
    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,738
    Are you saying that you are building a manual process?
    If you are bringing data from an automated system (SAP), I would expect that some flag or condition would exist to programmatically identify records. The condition could be placed in code and all records requiring GST calculation could be processed as a group .

    General syntax along this format:

    SELECT the fields required and apply GST FROM ImportedSAPData
    WHERE Condition for GST is True

    Another question: Why isn't the calculation being done in the Financial system (SAP)?
    Surely GST amounts must be accounted for in your financial system at some point.
    Last edited by orange; 11-28-2011 at 09:03 AM. Reason: spelling

  7. #7
    Bellablu is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Nov 2011
    Posts
    9
    Unfortunatly I did not set up the data extraction from the financial system, currently the extraction does not include the GST figure paid, otherwise I would have included that field, but it is something I will look into today to see if I could change the extraction (it would make life so much easier).

    But in case it does not, what can I do to make the GST field calculate the GST when I click a GST Yes/No button.

    Just checked the GST can not be extracted as part of the report as the report extracts expenditure against account codes, & GST when split in a transaction has it own account code. To add that code to the report would extract the GST amounts only & they would have to be matched to the original transaction.

    So back to the original plan. Can anyone help with an expression or macro
    Last edited by Bellablu; 11-28-2011 at 05:18 PM. Reason: More Info

  8. #8
    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,738
    Can you show us what fields the table(s) you extract from SAP contain?
    Perhaps make up a few sample transactions to help describe what exactly you want to happen to which records and fields and under what conditions.

    10 percent of X is ( .1 * X)

  9. #9
    Bellablu is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Nov 2011
    Posts
    9
    Journal Description Cost GST GST Yes (this is a Check Box in my DB Form)
    K BURNETT CPP ALLOW 292.00
    T EDWARDS CPP ALLOW 292.00
    F SMITH TRAINING SHOES 145.00 14.50 Yes

    OK here is a mock up of my DB thus far, the yellow section is imported data from SAP. "GST Yes" is a Yes/No field (Check Box in my DB Form) in the DB that when I check "Yes" I want it to calculate the GST amount, which is 10% of the "Amount" component in the "GST" field.
    Last edited by Bellablu; 11-28-2011 at 09:47 PM. Reason: Formating

  10. #10
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Were you going to attach a MDB???

    Also, you might read these:

    Read the attached PDF
    http://forums.aspfree.com/microsoft-...es-208217.html

    Another site about calculations:
    http://allenbrowne.com/casu-14.html
    Last edited by ssanfu; 11-28-2011 at 11:58 PM. Reason: added links

  11. #11
    Bellablu is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Nov 2011
    Posts
    9
    Nope that would just be stupid, wouldnt it!

    Actually I typed it out but when I hit post it deleted all the spaces. So I just plane gave up on it.

  12. #12
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Bellablu View Post
    Nope that would just be stupid, wouldnt it!
    Don't see why it would be stupid...

    But I guess I'll be stupid (my normal state ) and attach the mdb example I created. Maybe this will help you . Without knowing more about your table structure and your forms, this is the best I can do......

    If this example doesn't help or you have questions about what I did, please post back...

  13. #13
    Bellablu is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Nov 2011
    Posts
    9
    Your Awesome, thats exactly what I wanted it to do. Now I will go & play with it & get back to you.

  14. #14
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Great.

    Please NOTE: the GST and TOTAL amounts are NOT stored in the table as they can be calculated at any time.

  15. #15
    Bellablu is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Nov 2011
    Posts
    9
    HELP - how did you do it?????

    I have created my form, & my query I cant seem to get it to work in the control source. Been trying for 2 days now. beating my head against a wall now.
    Tried to attach it, but its to large.

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

Similar Threads

  1. Database Design for Specification Database
    By khwaja in forum Database Design
    Replies: 2
    Last Post: 11-24-2011, 03:58 AM
  2. Replies: 20
    Last Post: 08-08-2011, 01:34 PM
  3. Replies: 3
    Last Post: 05-15-2011, 10:52 PM
  4. Replies: 1
    Last Post: 11-03-2010, 10:41 AM
  5. Replies: 4
    Last Post: 08-12-2010, 08:38 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