Access Learner - Need Help with DoCmd.OpenForm to multiple criteria

Can you post the db here?
 
There is no field in that table named TransactionID. Is this what you meant?

Me.cboTransactionType = DLookup("TransactionTypeID", "T_TransactionType", "TransactionType='" & strOpenArgs(1) & "'")
 
What I want to achieve, when a user double on any selection in the list box, the value of the last column (new loan, renewal or amendment) to pass onto the unbound combo box "cboTransactionType" of F_LoanDocuments. Then that value will be the default value for "TransactionTypeID" of new record. Is that possible?
 
Did the code I posted do what you want?
 
Happy to help!

Hi Paul,

To better understand, I would greatly appreciate if you could explain the purpose of those apostrophes ( ' )

Me.cboTransactionType = DLookup("TransactionTypeID", "T_TransactionType", "TransactionType='" & strOpenArgs(1) & "'")

Thank you.
Van
 
For a text data type you add quotes. Without the concatenation, you'd have:

TransactionType = 'abc'

whereas a numeric data type would look like:

TransactionType = 123

The apostrophes I added were to achieve that.
 

Users who are viewing this thread

Back
Top Bottom