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.
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 -
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
-
FROM Payments
-
ORDER BY Payments.PaymentID;
-
Hope this gets you started.
Phil
9 5296
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!
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.
hi @twinnyfo for the function Calculation part are you gonna use Query or a VBA code.
hi @Nauticalgent
I'm sharpening my skills and i want to learn more about calculation in ms access :)
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!
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 -
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
-
FROM Payments
-
ORDER BY Payments.PaymentID;
-
Hope this gets you started.
Phil
Great start, Phil! That's where I was going to start, but you beat me to it!
thanks for the help @PhilOfWalton,@twinnyfo and @Nauticalgent
it really helps a lot :)
That's what we're here for. A pleasure.
Phil
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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,...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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,...
| |