Couple of issues, first one (I've done a work around by doing a make table each time procedure is run to get one row per group, but if there is a solution to this to use the original table, that would be great, otherwise skip to second issue).
1:
This probably wouldn't be an issue if using a combo box, but user wants to see all values at the same time (I set up as continuous form) and be able to edit/update one of the fields. The underlying table is a key words table and is used to assign an overall grouping to another table. I was hoping that since I need these same groupings for a summary purpose, I could use the same table. A summary query becomes non updatable. Problem is that the user is going to assign a value to a group. In this case it doesn't matter which row in the group is assigned the value, but only one row should be visible on the form for editing.
2:
I have put text boxes on the form that use a dcount to return a count of how many rows (records) would be selected based on the value the user entered. It is working, however, the reference to the textbox seems to require the actual name of the form rather than "Me". I would like to not have to hard code the form name as the name of the form may get changed when it goes from testing into production and then I have to remember to fix it or an error will result.
The formula is getting the table name from combobox on another form called "Utilities" and the values from the underlying table bound to form "Form4"
[tt]=DCount("Company",[Forms]![frmUtilities].[cboPreview],"Counter <= " & [Forms]![Form4].[txtCutoff] & " AND Title_Group='" & [Forms]![form4].[Title_Group] & "'")[/tt]
Here is sample data for the keyword grouping table (cutoff value before user data entry will be null):
[pre]
ID TitleGroup Title Priority Cutoff
1 IT Information 1
2 IT Technology 1
3 IT CIO 1
4 HR HR 2
5 HR Human Resources 2
[/pre]
Based on the sample data, the form should display two rows.
Underlines represent the text boxes that will be filled in and calculated
based on user input. Like this:
[pre]
Title Group Cutoff Count Total N Total C
IT __ __ 4 5000
HR __ __ 1 77
[/pre]
User will then enter a Cutoff number less than or equal to the "Total N" and this will then
result in a calculation appearing in "Count" based on the dcount formula
[pre]
Title Group Cutoff Count Total N Total C
IT 3 4200 4 5000
HR 1 77 1 77
[/pre]
1:
This probably wouldn't be an issue if using a combo box, but user wants to see all values at the same time (I set up as continuous form) and be able to edit/update one of the fields. The underlying table is a key words table and is used to assign an overall grouping to another table. I was hoping that since I need these same groupings for a summary purpose, I could use the same table. A summary query becomes non updatable. Problem is that the user is going to assign a value to a group. In this case it doesn't matter which row in the group is assigned the value, but only one row should be visible on the form for editing.
2:
I have put text boxes on the form that use a dcount to return a count of how many rows (records) would be selected based on the value the user entered. It is working, however, the reference to the textbox seems to require the actual name of the form rather than "Me". I would like to not have to hard code the form name as the name of the form may get changed when it goes from testing into production and then I have to remember to fix it or an error will result.
The formula is getting the table name from combobox on another form called "Utilities" and the values from the underlying table bound to form "Form4"
[tt]=DCount("Company",[Forms]![frmUtilities].[cboPreview],"Counter <= " & [Forms]![Form4].[txtCutoff] & " AND Title_Group='" & [Forms]![form4].[Title_Group] & "'")[/tt]
Here is sample data for the keyword grouping table (cutoff value before user data entry will be null):
[pre]
ID TitleGroup Title Priority Cutoff
1 IT Information 1
2 IT Technology 1
3 IT CIO 1
4 HR HR 2
5 HR Human Resources 2
[/pre]
Based on the sample data, the form should display two rows.
Underlines represent the text boxes that will be filled in and calculated
based on user input. Like this:
[pre]
Title Group Cutoff Count Total N Total C
IT __ __ 4 5000
HR __ __ 1 77
[/pre]
User will then enter a Cutoff number less than or equal to the "Total N" and this will then
result in a calculation appearing in "Count" based on the dcount formula
[pre]
Title Group Cutoff Count Total N Total C
IT 3 4200 4 5000
HR 1 77 1 77
[/pre]