473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Ledger in MS Access Database

10
hey guys please help me I'm practicing accounting on ms access and I'm creating a General ledger but I have know idea how to make it like this.

Attached Images
File Type: jpg pics.jpg (33.4 KB, 3390 views)
Jun 26 '18 #1

✓ answered by PhilOfWalton

This may help. The table I use has a PaymentAmount which can be either >=0 (Credit) or <0 (Debit)

You also need an Autonumber (PaymentID) so that transactions are kept in order.

This is the SQL I use. Note that where I have got MemberID, you will need Invoice No

Expand|Select|Wrap|Line Numbers
  1. SELECT Payments.PaymentDate, Payments.MemberID, Payments.PaymentAmount, Payments.PaymentID, IIf([PaymentAmount]>=0,[PaymentAmount]) AS Credit, IIf([PaymentAmount]<0,[PaymentAmount]) AS Debit, DSum("[PaymentAmount]","Payments","[PaymentID]<=" & [PaymentID]) AS Balance
  2. FROM Payments
  3. ORDER BY Payments.PaymentID;
  4.  
Hope this gets you started.

Phil

9 5296
twinnyfo
3,653 Expert Mod 2GB
Hi junne,

I would build your table very similarly to how it is displayed, except that instead of hainvg a separate field for Debit and Credit, I would have a field for transaction type and then a field for transaction amount (in all positive numbers). Then, depending upon the type of transaction, the transaction amount is rendered as either a debit or credit. One of your transaction types could be "Beginning Balance", which could either be 0 or an initial deposit (but such a thing would not be required).

I also would not store the "Balance" field, but calculate it real time, as there could be transactions which are reconciled at different dates/times.

Hope this hepps!
Jun 26 '18 #2
Nauticalgent
100 64KB
Is this something you are just doing to sharpen your skills or do you plan on using it?

If it's the former then others may be inclined to help you out. If it's the latter, then there are much better solutions available right of the shelf (Quicken, QuickBooks)! In this particular case, IMHO, even Excel (Access Gods forgive me) would be better suited for this task.
Jun 26 '18 #3
junne
10
hi @twinnyfo for the function Calculation part are you gonna use Query or a VBA code.
Jun 27 '18 #4
junne
10
hi @Nauticalgent

I'm sharpening my skills and i want to learn more about calculation in ms access :)
Jun 27 '18 #5
Nauticalgent
100 64KB
Then sharpen away! That whole running total thing you want to do is possible, I just don’t know how I would do it and give you the ledger-like appearance. My Kung-fu just isn’t that good!
Jun 27 '18 #6
PhilOfWalton
1,430 Expert 1GB
This may help. The table I use has a PaymentAmount which can be either >=0 (Credit) or <0 (Debit)

You also need an Autonumber (PaymentID) so that transactions are kept in order.

This is the SQL I use. Note that where I have got MemberID, you will need Invoice No

Expand|Select|Wrap|Line Numbers
  1. SELECT Payments.PaymentDate, Payments.MemberID, Payments.PaymentAmount, Payments.PaymentID, IIf([PaymentAmount]>=0,[PaymentAmount]) AS Credit, IIf([PaymentAmount]<0,[PaymentAmount]) AS Debit, DSum("[PaymentAmount]","Payments","[PaymentID]<=" & [PaymentID]) AS Balance
  2. FROM Payments
  3. ORDER BY Payments.PaymentID;
  4.  
Hope this gets you started.

Phil
Jun 27 '18 #7
twinnyfo
3,653 Expert Mod 2GB
Great start, Phil! That's where I was going to start, but you beat me to it!
Jun 27 '18 #8
junne
10
thanks for the help @PhilOfWalton,@twinnyfo and @Nauticalgent
it really helps a lot :)
Jun 28 '18 #9
PhilOfWalton
1,430 Expert 1GB
That's what we're here for. A pleasure.

Phil
Jun 28 '18 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Steve V | last post by:
I'm looking for a sample access database (preferably Access 2000 or early) that is more sophisticated than the template/sample provided with Access. It's for personal use. Can anyone point me to...
6
by: xmp333 | last post by:
Hi, I have read the MS documentation and researched this matter, but I could not find the answer to my question. If this is online or in a FAQ somewhere, I apologize in advance. How...
25
by: cory | last post by:
Hi, I have an Access database and am having an ASP.NEt application written for it. It is almost complete. I have a hosting company that I signed up with a month ago but before I did anything I...
10
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network...
5
by: premmehrotra | last post by:
I currently have a multi-user access database which is put on a shared drive L: on a Windows Servers. Entire database is one file premdb.mdb. Users access this database from their laptops....
8
by: John Baker | last post by:
Hi: I am URGENTLY in need of some book or web site OR tool that will help me integrate a relatively simple access application into a web page or pages. This is a time recording system (by...
15
by: philip | last post by:
On a form, I have a datagridview. This datagridview is constructed on a dataset filled by a tableadapter. The table adapter do very well what it must do when filling dataset. Insertions,...
7
by: Allison | last post by:
Hi -- we are a small manufacturing looking for a multi-user database to take customer orders (nothing too complicated, with 3 users total). We think we should be using Access, but are wondering...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.