G
Guest
Hi:
I’ve used a program very similar to Access, called Alpha Five, for many
years. I created a checkbook application in A5 that works great and now I
want to convert it over to Access 2000, but I need some serious help. I have
lots of questions, let me start with the basics.
The Parent is tblAccounts, the child is tblTransactions, and there is a
lookup table called tblPayees. The parent and child are linked by the text
ID_No field. In addition to account information, the parent table also has 3
fields, Debits, Credits, and Balance which displays the current checkbook
balance. The total Debits and Credits are obtained from the child table and
the Balance field is simply a calculated field [Credits – Debits].
The child table has a text fields called Trans_No, which is the primary key,
every child record has a unique Trans_No.
The child table has a field called Trans_Type, which is restricted in A5 to
only two choices, “Debit†or “Creditâ€. If the user selects “Debitâ€, the
Credit currency field is disabled. And obviously if the user selects
“Creditâ€, the [Debit] currency field is disabled.
TblTransactions also has a field called [Line_Bal] which is the current
balance for each transaction, just like Quicken.
Here are some of my questions:
[1] How can I disable the child Debit or Credit currency fields based upon
the user’s choice in the Trans_Type field?
[2] Can I create a form-based query that calculates the total Debits and
Credits from the child table and places them in the parent table each time a
record is saved?
[3] How can I sort the child table by Date and then by; Trans_Type? In other
words, for each date, I want the “Credit†transactions displayed before the
“Debit†transactions.
And here’s the big question which I’ll leave for another time. Is there a
way to write code that will update all of the relevant child records if the
user enters a transaction on an earlier date or edits a saved transaction? In
other words, if today’s date is 03/01/2005 and the user enters a new record
that occurred on let’s say 02/25/2005, Access will have to update the
[Line_Bal] field for every record between February 25th and March 1st.
Is there a sample Access checking database that has already solved the above
problems and/or does it more efficiently that can someone can point to? Any
other thoughts?
Thanks for all of your help,
Robert T
I’ve used a program very similar to Access, called Alpha Five, for many
years. I created a checkbook application in A5 that works great and now I
want to convert it over to Access 2000, but I need some serious help. I have
lots of questions, let me start with the basics.
The Parent is tblAccounts, the child is tblTransactions, and there is a
lookup table called tblPayees. The parent and child are linked by the text
ID_No field. In addition to account information, the parent table also has 3
fields, Debits, Credits, and Balance which displays the current checkbook
balance. The total Debits and Credits are obtained from the child table and
the Balance field is simply a calculated field [Credits – Debits].
The child table has a text fields called Trans_No, which is the primary key,
every child record has a unique Trans_No.
The child table has a field called Trans_Type, which is restricted in A5 to
only two choices, “Debit†or “Creditâ€. If the user selects “Debitâ€, the
Credit currency field is disabled. And obviously if the user selects
“Creditâ€, the [Debit] currency field is disabled.
TblTransactions also has a field called [Line_Bal] which is the current
balance for each transaction, just like Quicken.
Here are some of my questions:
[1] How can I disable the child Debit or Credit currency fields based upon
the user’s choice in the Trans_Type field?
[2] Can I create a form-based query that calculates the total Debits and
Credits from the child table and places them in the parent table each time a
record is saved?
[3] How can I sort the child table by Date and then by; Trans_Type? In other
words, for each date, I want the “Credit†transactions displayed before the
“Debit†transactions.
And here’s the big question which I’ll leave for another time. Is there a
way to write code that will update all of the relevant child records if the
user enters a transaction on an earlier date or edits a saved transaction? In
other words, if today’s date is 03/01/2005 and the user enters a new record
that occurred on let’s say 02/25/2005, Access will have to update the
[Line_Bal] field for every record between February 25th and March 1st.
Is there a sample Access checking database that has already solved the above
problems and/or does it more efficiently that can someone can point to? Any
other thoughts?
Thanks for all of your help,
Robert T