DeannaKate
New member
- Local time
- Today, 02:57
- Joined
- Oct 31, 2013
- Messages
- 6
Hi all... I've got a single form ("Lead Data") that has Cascading Combo boxes that work perfectly, entering data into "tblLeadData":
Okay, more on how it is set up. The same people are always assigned to a specific matter, so when you pull down the Atty & Plgl combo boxes, there's only one person. So it isn't a true Parent/Child relationship, but it's working. And there were two advantages of this set up over an autopopulate set up (which I considered): 1) When I change something in the reference tables (refAtty and refPlgl), it also changes in tblLeadData & 2) in case there's an exception to the usual assignment pattern, we can just leave Atty & Plgl blank and put the correct assignment in a text box called "AssignmentNotes."
So my query of tblLeadData that works, qryLeadDataAssign, uses the following fields:
When I run the query, it asks me a single time, "Who?", I put in the name and it pulls up all instances of the name from any of the 3 fields. It acts as a "contains" filter, not an "equals" one.
As for my cascading combos, here are the settings
I tried putting the expression from the query into the macro builder window, but I for sure don't know what I'm doing there and haven't been able to make it work.
Help! It's taken me so long to get where I am with this thing. The trial and error has been great for learning, but I'm my deep wells of trial and error juice have just about run dry. I need to get this thing done.
Thanks so much! and I can certainly supply more detail if needed.
DeannaKate
- cboMatterTypeID
- cboMatterID
- cboAttyID
- cboPlglID
- cboMatterID
Okay, more on how it is set up. The same people are always assigned to a specific matter, so when you pull down the Atty & Plgl combo boxes, there's only one person. So it isn't a true Parent/Child relationship, but it's working. And there were two advantages of this set up over an autopopulate set up (which I considered): 1) When I change something in the reference tables (refAtty and refPlgl), it also changes in tblLeadData & 2) in case there's an exception to the usual assignment pattern, we can just leave Atty & Plgl blank and put the correct assignment in a text box called "AssignmentNotes."
So my query of tblLeadData that works, qryLeadDataAssign, uses the following fields:
- tblLeadData.AttyID
- refAtty.Atty
- tblLeadData.PlglID
- refPlgl.Plgl
- tblLeadData.AssignmentNote
- Expr1: [Atty] & " " & [Plgl] & " " & [LeadAssignmentNotes]
- Criteria: Like "*" & [Who?] & "*"
When I run the query, it asks me a single time, "Who?", I put in the name and it pulls up all instances of the name from any of the 3 fields. It acts as a "contains" filter, not an "equals" one.
As for my cascading combos, here are the settings
- MatterTypeID
- Row Source: SELECT refMatterType.MatterTypeID, refMatterType.MatterType, refMatterType.[MatterType] FROM refMatterType ORDER BY refMatterType.[MatterType];
- On Change Event:
- Me.cboMatter.Requery
- MatterID
- Row Source: SELECT tblMatter.MatterID, tblMatter.Matter FROM tblMatter WHERE (((tblMatter.MatterTypeID)=[Forms].[LeadData].[cboMattertype])) GROUP BY tblMatter.MatterID, tblMatter.Matter, tblMatter.Matter ORDER BY tblMatter.Matter;
- On Change Event:
- Me.cboAtty.Requery
- Me.cboPlgl.Requery
- AttyID
- RowSource: SELECT tblMatter.AttyID, refAtty.Atty FROM refAtty INNER JOIN tblMatter ON refAtty.AttyID = tblMatter.AttyID WHERE (((tblMatter.MatterID)=[Forms].[LeadData].[cboMatter])) GROUP BY tblMatter.AttyID, refAtty.Atty;
- PlglID set up along the same lines as AttyID
- Form
- On Current Event
- cboMatter.Requery
- cboAtty.Requery
- cboPlgl.Requery
- On Current Event
- Enter Parameter Value: Atty
- Enter Parameter Value: Plgl
- Enter Parameter Value: Who?
I tried putting the expression from the query into the macro builder window, but I for sure don't know what I'm doing there and haven't been able to make it work.
Help! It's taken me so long to get where I am with this thing. The trial and error has been great for learning, but I'm my deep wells of trial and error juice have just about run dry. I need to get this thing done.
Thanks so much! and I can certainly supply more detail if needed.
DeannaKate