I have very minimal experience with Access and desperately need some help.
I have a query in Access called qryCashBalances that, among other things, displays certain client info: accountID (basically the account number), billToAccount (one the client’s accounts which our fees are pulled from), and cashbalance (the current cash in every account). If a client has multiple accounts we generally will only pull fees from one of our clients accounts to make it easier for our billing process. I would like to add a new field in the qryCashBalances query that pulls data from a different query, qryFeeCalc. qryFeeCalc shows the client’s aggregated fee amount (SumOfFee field) and also displays the billToAccount field mentioned earlier. I want to enter the DLOOKUP expression as a field on the CashBalances query to grab each accountID from this query, look at qryFeeCalc to see if there is a matching billToAccount, then display the SumOfFee amount associated with that billToAccount on the same row so that now I can see accountID, billToAccount, cashbalance, and the new field SumOfFee. If an account number isn’t found, I’d like it to display 0. I can’t figure out how to specify the criteria in the expression. Here’s what I’ve got so far entered into qryCashBalances:
DLOOKUP(“SumOfFee”,”qryFeeCalc”, _________)
Sorry for the somewhat lengthy and confusing description. Thanks in advance.
-Lee