Hi again!
This forum has been FABULOUS so far, so I thought I'd throw up my latest stumper. I know that this issue has been discussed out the wazoo but I can't find anything quite like my issue.
I have a form that is based on a table, "T: Financials - Data Entry". It allows me to enter in cheque information for depositing. I need to track the cheques by category and subcategory. So, the Category field on this form looks up the category from a different table, called "T: Cat and Sub Categories Assigned" that contains both the category and a subcategory. I have and Autonumber Primary Key field assigned in this table called "ID". I have it set up so that the combo box displays both the category and subcategory and, when I choose it, dumps only the category into that field (this is working well). What I want it to do is go next door to the Sub-category field and dump the subcategory that was associated with the category into it all by itself.
I figured I would put a DLookup into the After Update event of the Category field, but I'm having trouble with the syntax. This is what I have so far:
Obviously, its not done. Can you give me some pointers?
THANKS in advance!
This forum has been FABULOUS so far, so I thought I'd throw up my latest stumper. I know that this issue has been discussed out the wazoo but I can't find anything quite like my issue.
I have a form that is based on a table, "T: Financials - Data Entry". It allows me to enter in cheque information for depositing. I need to track the cheques by category and subcategory. So, the Category field on this form looks up the category from a different table, called "T: Cat and Sub Categories Assigned" that contains both the category and a subcategory. I have and Autonumber Primary Key field assigned in this table called "ID". I have it set up so that the combo box displays both the category and subcategory and, when I choose it, dumps only the category into that field (this is working well). What I want it to do is go next door to the Sub-category field and dump the subcategory that was associated with the category into it all by itself.
I figured I would put a DLookup into the After Update event of the Category field, but I'm having trouble with the syntax. This is what I have so far:
Code:
Private Sub Combo44_AfterUpdate()
Dlookup("[Category]","T:Financials - Cat and Sub Categories Assigned", "Sub-category =" & ID =
End Sub
THANKS in advance!
Comment