Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. STRATMAN1

    Code for Summing three combo box values on a Form

    I have a form that has four controls- the first three are combo boxes with integer values, the fourth is a text box for a total of the three combo boxes. all the controls are bound to fields in a query/table. (So that the text box with the total saves to the table). I am trying to write the code...
  2. STRATMAN1

    Selecting Maximum Value between two rows of the same field

    I have constructed a crosstab query and report based on it where I have two row headings: Region, and STatus. The only values in Status are "New" and "Old" The column headers are type1, type 2, and type 3, and the field values are an integer. I am trying to change the backcolor to yellow where...
  3. STRATMAN1

    Selecting Maximum Value betwen two rows of the same field

    I have constructed a crosstab query and report based on it where I have two row headings: Region, and STatus. The only values in Status are "New" and "Old" The column headers are type1, type 2, and type 3, and the field values are an integer. I am trying to change the backcolor to yellow where...
  4. STRATMAN1

    Highlighting Maximum Value in a Row

    I have an Access report based on a crosstab query, with rows as "month" and columns as "employee" with values as sales dollars for that month. I am trying to shade the highest value in each month row. The shading is not hard, but I dont know how to construct the code (have tried dmax function)...
  5. STRATMAN1

    HIGHLIGHTING MAXIMUM VALUE IN A ROW-ACCESS REPORTS-REPLY TO DHOOKUM

    ORIGINAL THREAD: I have a report based on a crosstab query, with rows as "month" and columns as employee sales dollars for that month. I am trying to shade the highest value in each month row. The shading is not hard, but I dont know how to construct the code (have tried dmax function) when...
  6. STRATMAN1

    FINDING MAXIMUM VALUE IN A REPORT ROW

    I have a report based on a crosstab query, with rows as "month" and columns as employee sales dollars for that month. I am trying to shade the highest value in each month row. The shading is not hard, but I dont know how to construct the code (have tried dmax function) when trying to find the...
  7. STRATMAN1

    Setting Backcolor of control in access report

    I have been working for several days to write code for a report in order to change the backcolor of a report control noted here as "[1]" if it is the maximum value in the field. I am almost there, but I am getting an error message I dont know how to deal with. Here is the code: Option Compare...
  8. STRATMAN1

    trouble with dmax function- code in Access Report

    I have been attempting to shade a control in a report when the highest value in a query field is shown. I received some assistance in the form of code suggestion as follows: Option Compare Database Option Explicit 'Global declaration to hold the max value Dim lngMax As Long Private Sub...
  9. STRATMAN1

    Conditional formatting in a report text box control

    I have a control tied to a query that in a report returns several values. I am trying to use conditional formatting to shade the highest value in the field. I have used bracketed expressions, not field values, to accomplish this. I understand from Access help that the conditional formatting...
  10. STRATMAN1

    AVG iif Function in a Query

    I have created a query where I try to return six records that correspond to six states. For each record, I am trying to create an expression in the query that returns the average of one field , with a criteria limiter, for each of the six states. I have used Avg iif to do this. I cannot get the...
  11. STRATMAN1

    Criteria for use in DCount Function

    I am in a query where I use a dsum function in several different expressions in the query. in the dsum, I am setting a criteria on a field in the same query table, i.e, where I sum dollar values from one field based on a range of values in another. Example: sum the dollar values from the for the...
  12. STRATMAN1

    Creating Event Procedure: changing Backcolor of Report Control

    Greetings to all. I have an Access report with bound text box controls in the report detail section that come from a crosstab query. Call them controls a and b. I want the backcolor of control b to change if the value of control a is equal to a certain number. I am not certain if I write the...
  13. STRATMAN1

    CREATING UNBOUND CONTROL IN AN ACCESS REPORT

    I have a report already created based on a crosstab query. one of the fields in the report is [region]. In the table the query draws from, there is a field regionid, a number. I cant get it into the report because of rowheading limitations of the crosstab. I have tried to write code assigning...
  14. STRATMAN1

    Running Procedure in an Access Report

    Greetings to All! I have created report where I want to run a procedure where in the detail section of the report I have a text box with different calculated values. When the text box is 90 points, I want an OLE object to appear, 80 points another OLE object, and so on. If there is no value in...
  15. STRATMAN1

    Creating Event procedure on Control in Access Report

    Greetings to all. I am attempting to create an event procedure (so to speak) in an Access report. I have designed an OLE object that I want to appear only if it correlates to a certain value in another control. i.,e if the value appears, the ole object appears or is visible. I have written code...
  16. STRATMAN1

    Transferring Values in Unbound Text box to Bound Text Box

    I have several calculated controls on a form (based on the controll source property being a dlookup function )that I want to have the values captured in a database so they can be sorted. I created a bound control text box, and in the corresponding unbound control text box I wrote an event...
  17. STRATMAN1

    Saving Result of Calculated Text box on a form into the Database

    I have created a form with bound textbox controls where certain values are typed in. I have a corresponding unbound textbox with a DLookup statement typed in the Control Source Property that matches the typed value in the bound control to a table of range values. I am trying to get my...
  18. STRATMAN1

    Creating Access Junction Table

    Cannot find correct process for creating a junction table in Access. I have attempted via help screens, instructions dont seem to work. Always seems to be an outer (type 2) join automatically created between the two tables I want to relate through the junction table. I have created one junction...
  19. STRATMAN1

    VISUAL BASIC WORKBOOK BEFORE SAVE EVENT

    I am trying to use the Workbook BeforeSave Event (if appropriate) to prevent an excel worksheet from saving if a particular cell does not equal the number 1. Cant seem to get it to work. I also would like a message box that pops up if the value of this cell is not 1, but no yes/no choice is...

Part and Inventory Search

Back
Top