A
Alam
I have been working on a small corporate DB And am stuck on an account form
Name: TransactionMainFm
I need a Function which can show field base on TransactionTypeID selection.
I am abl to pull it off mostly by using tha old fashioned After UpDate
TransTypeIDCombo & On Current Events If and Else and Visible true and False .
I have also used Dirk Goldgar's : Code for validation required field
fncRequiredFieldsMissing using Tag property, it is working nicely (( THANKS
DIRK ,00)) Except for a few scenarios !!
I am wondering if someone can help me with some kind of Public function.
I am dead tired writing and checking My If and else , looks like it will be
over 500 line code B/W OnCurrent And Combo After Update event. There must be
some kind of function like Dirk Goldgar's : fncRequiredFieldsMissing
Function ??
Here’s My TransactionTb
Table frmControl
So far I am able to make a nice small single form which shows and hides
fields
Depending on Transaction Type ID ( ComboBox )
Transaction Type ID Is fixed not standard but works Perfect in my situation.
It has 10 options
Table frmControl
TransactionID Auto # PK TextBox
AgencyID Number ComboBox
BankID Number ComboBox
ChequeNo Text TextBox
CreditCardID Number ComboBox
CardTranscationNo Text TextBox
TranscationDate Date/Time TextBox
TranscationTypeID Number ComboBox
PayeesID Number ComboBox
DepositAmount Currency TextBox
WithdrawalAmount Currency TextBox
BankCreditCardFee Currency TextBox
ExpenseAmount Currency TextBox
CheckIssueDate Date/Time TextBox
CardBillPay Currency TextBox
ExpenseTypeID Number ComboBox
Note Text Text
Recipt Yes/No CheckBox
EmployeeID Number ComboBox
PayCheckAmount Currency TextBox
TransactionTypeTb Look Like :
Transaction TransactionType Description
TypeID
Explanation: use in Mainfm
1 Agency Transaction Only Agency Check Deposit DepositAmount
2 Other Check Deposit Personal, IRS Return ect. DepositAmount
3 Cash Transaction Cash Expense ExpenseAmount
4 Credit Card Transaction Credit Card Charge ExpenseAmount
5 Credit Card Bill Payment Credit Card Bill Payment CardBillPatAmount
6 ATM Withdrawal ATM WithdrawalAmount
7 Check Issue Check Issue For Expense ExpenseAmount
8 Fees And Other Charges Bank or Credit Card Fees or Services CardBillPay
9 Cash Deposit Cash Deposit In BankAcc ExpenseAmount
10 PAY ROLL Employee’s Check Issue PayCheckAmount
Any Help is greatly appreciated.
Name: TransactionMainFm
I need a Function which can show field base on TransactionTypeID selection.
I am abl to pull it off mostly by using tha old fashioned After UpDate
TransTypeIDCombo & On Current Events If and Else and Visible true and False .
I have also used Dirk Goldgar's : Code for validation required field
fncRequiredFieldsMissing using Tag property, it is working nicely (( THANKS
DIRK ,00)) Except for a few scenarios !!
I am wondering if someone can help me with some kind of Public function.
I am dead tired writing and checking My If and else , looks like it will be
over 500 line code B/W OnCurrent And Combo After Update event. There must be
some kind of function like Dirk Goldgar's : fncRequiredFieldsMissing
Function ??
Here’s My TransactionTb
Table frmControl
So far I am able to make a nice small single form which shows and hides
fields
Depending on Transaction Type ID ( ComboBox )
Transaction Type ID Is fixed not standard but works Perfect in my situation.
It has 10 options
Table frmControl
TransactionID Auto # PK TextBox
AgencyID Number ComboBox
BankID Number ComboBox
ChequeNo Text TextBox
CreditCardID Number ComboBox
CardTranscationNo Text TextBox
TranscationDate Date/Time TextBox
TranscationTypeID Number ComboBox
PayeesID Number ComboBox
DepositAmount Currency TextBox
WithdrawalAmount Currency TextBox
BankCreditCardFee Currency TextBox
ExpenseAmount Currency TextBox
CheckIssueDate Date/Time TextBox
CardBillPay Currency TextBox
ExpenseTypeID Number ComboBox
Note Text Text
Recipt Yes/No CheckBox
EmployeeID Number ComboBox
PayCheckAmount Currency TextBox
TransactionTypeTb Look Like :
Transaction TransactionType Description
TypeID
Explanation: use in Mainfm
1 Agency Transaction Only Agency Check Deposit DepositAmount
2 Other Check Deposit Personal, IRS Return ect. DepositAmount
3 Cash Transaction Cash Expense ExpenseAmount
4 Credit Card Transaction Credit Card Charge ExpenseAmount
5 Credit Card Bill Payment Credit Card Bill Payment CardBillPatAmount
6 ATM Withdrawal ATM WithdrawalAmount
7 Check Issue Check Issue For Expense ExpenseAmount
8 Fees And Other Charges Bank or Credit Card Fees or Services CardBillPay
9 Cash Deposit Cash Deposit In BankAcc ExpenseAmount
10 PAY ROLL Employee’s Check Issue PayCheckAmount
Any Help is greatly appreciated.