M
Martin
Thanks in advance… I’m new into this so my explanation may be larger than
usual!!!
I’m developing an accounting book application. Basically, it’s gonna record
accounting transactions for different accounting periods.
1. An accounting period may have many accounting books
2. An accounting book has many acc. sheets (Number specified when defining
the acc. book)
3. Each acc. sheet belongs to a single account but an account may have many
acc. sheets withing the same acc. Book (Depending on how many transactions
the account is involved over the period)
4. Each acc. sheet has many lines (Number specified when defining the acc.
book)
I created two tables to save transactions… “Transaction register†and
“Transaction Detailsâ€
I created a single form for writing down transactions based on Transaction
Register and a subform for Transaction Details which is in Datasheet View.
Here come the issues…
I have a Combo Box on the subform “Transaction Details†where the user is
going to select an account from. This Combo Box has 4 columns, the first one
is dependent, the others are used to fill out other controls once the user
has made his choice, except for the third one which is used to guide the user
without id’s (this is the only column seen by the user). The RowSource
property is a sql statement that returns sql integrated functions (Max)
because the application must look for the last sheet assigned to the account.
I have two problems:
1. Once the account is selected and the user moves to the next record, the
control should take the account picked out of the list… I tried with “SELECT
Max(IdSheet),Max(Var2), AccountName…, WHERE IdSheet NOT IN (SELECT IdSheet
FROM TransactionDetails WHERE IdTransaction=†& Me.txtIdTransaction & “ GROUP
BY IdAccount†But it doesn’t work. Any idea?
2. When the user moves to the next record, the control gets a blank given
that the information seen is not saved… I want the user to see the account
chosen… Any idea?
usual!!!
I’m developing an accounting book application. Basically, it’s gonna record
accounting transactions for different accounting periods.
1. An accounting period may have many accounting books
2. An accounting book has many acc. sheets (Number specified when defining
the acc. book)
3. Each acc. sheet belongs to a single account but an account may have many
acc. sheets withing the same acc. Book (Depending on how many transactions
the account is involved over the period)
4. Each acc. sheet has many lines (Number specified when defining the acc.
book)
I created two tables to save transactions… “Transaction register†and
“Transaction Detailsâ€
I created a single form for writing down transactions based on Transaction
Register and a subform for Transaction Details which is in Datasheet View.
Here come the issues…
I have a Combo Box on the subform “Transaction Details†where the user is
going to select an account from. This Combo Box has 4 columns, the first one
is dependent, the others are used to fill out other controls once the user
has made his choice, except for the third one which is used to guide the user
without id’s (this is the only column seen by the user). The RowSource
property is a sql statement that returns sql integrated functions (Max)
because the application must look for the last sheet assigned to the account.
I have two problems:
1. Once the account is selected and the user moves to the next record, the
control should take the account picked out of the list… I tried with “SELECT
Max(IdSheet),Max(Var2), AccountName…, WHERE IdSheet NOT IN (SELECT IdSheet
FROM TransactionDetails WHERE IdTransaction=†& Me.txtIdTransaction & “ GROUP
BY IdAccount†But it doesn’t work. Any idea?
2. When the user moves to the next record, the control gets a blank given
that the information seen is not saved… I want the user to see the account
chosen… Any idea?