Recent content by krutoigoga

  1. K

    Report to display records based on form text box

    Form "IAR_Entry" with multiple fields is being used to enter data into "IAR" Table. I am trying to a way to enter a field value (ID) on a form and base the report on the specific field value in the form, i.e. only show the records for that ID. I am able to do the above in the form using a combo...
  2. K

    Change "Back colour" based on criteria

    For future googler, if you want a text box (in this case "ID") to change color based on another text box (in this case "Status") use: Select Case Me.[Status] Case "Closed" Me.ID.BackColor = 12632256 Case Else Me.ID.BackColor = 16777215 End Select
  3. K

    Change "Back colour" based on criteria

    Holy S:eek:T .... That was it! Thank you!
  4. K

    Change "Back colour" based on criteria

    p.s. I know you do not have access to access ;) right now. I checked the code in debug mode. Not sure what I was looking for. Was it about the backcolor?
  5. K

    Change "Back colour" based on criteria

    Paul, I have attached a sample database, would you be able to review it please?
  6. K

    Pictures from form to reports

    Issue resolved. Had to drag and drop the "attachment" from field list into report .. just like the form. Thanks guys
  7. K

    Change "Back colour" based on criteria

    Me.Status.BackColor. The code I have now is: If Me.Status = "Open" Then Me.Status.BackColor = 16777215 End If If Me.Status = "Closed" Then Me.Status.BackColor = 12632256 End If Report print preview does not show any change in background color. :confused: Everything else seems to work ok in the...
  8. K

    Change "Back colour" based on criteria

    Forgot to attach pictures
  9. K

    Change "Back colour" based on criteria

    Followed the instructions to add code to Detail properties (see pic "Detail"). The code was giving me syntax errors (see pic "error"). Made a slight change to the code: If Me.Status = "Open" Then Me.Status.BackColor = 16777215 End If If Me.Status = "Closed" Then Me.Status.BackColor = 12632256...
  10. K

    Pictures from form to reports

    Hi everyone. Database tracking various issues. Using a form to enter the data, which is recorded in a table. Table has a Field data type as "Attachment", Form has the option to attach a pic which was created by dragging and dropping the attachment field from the field list (add existing fields...
  11. K

    Change "Back colour" based on criteria

    Sorry guys - I still cannot find where to insert the provided code. Please see the two pictures attached. "Con-for" is how the conditional formatting is set as (when print previewing report BG colour does not change) Other picture (Status) is of the property sheet tabs - Can you please direct...
  12. K

    Change "Back colour" based on criteria

    Thanks man, I have used conditional formatting before in excel and am familiar with it. The report does not display the background color and i could not figure out why. Could you expand a bit more on "format event of the section containing the controls"?
  13. K

    Change "Back colour" based on criteria

    Getting expression errors when trying the code provided. I went to report property sheet > on open > code builder > and the following code was addded: Private Sub Report_Open(Cancel As Integer) If Me.Status = "Open" Then me.Status.backgroundcolor = #FFFFFF End If If Me.Status = "closed" Then...
  14. K

    Change "Back colour" based on criteria

    Hi everyone. Created a subreport from a query and I am trying to change the background colour of a text box in a report based on a simple criteria. If the text box displays "open" no background color or #FFFFFF and if the text box is closed then back ground color is to be #A5A5A5. Currently the...
  15. K

    DSUM with date criteria from form

    Thanks SOS - that seems to have worked, however the TOTAL displayed in the report for some reason is ignoring the date criteria. It is giving me a total in the table - regardless of the date specified. I have attached a template that I am working on. Thank you.
Back
Top Bottom