Search results

  1. F

    Attach a subroutine to an unbound Text box?

    Will do that. Thanks again. I think I understand now.
  2. F

    Attach a subroutine to an unbound Text box?

    I think I understand what you are saying, but I have an additional problem in that most of the time I would just multiply Split1 * Fee based upon what was in the Code1 field. But, at other times, still based upon what was in Code1 it would be necessary to multiply Split1 * Amount (another...
  3. F

    Attach a subroutine to an unbound Text box?

    I thought the If Then statement was assigning the value (Split1 * Fee) to TotalA.
  4. F

    Attach a subroutine to an unbound Text box?

    I thought what I was doing was returning a value. What might I do to make this return a value?
  5. F

    Attach a subroutine to an unbound Text box?

    I have a subreport that has the fields that are in the function code. I created a txtbox called TotalA and hoped to populate it from within the functions output. That is why I thought you said to place the function in the control source box. Thought it would execute from there. Was that wrong?
  6. F

    Attach a subroutine to an unbound Text box?

    Wrote this just as a trial function to see if it might work. It is not fully completed as yet. Option Compare Database Option Explicit Public Function SplitTotal(TotalA As Double, TotalB As Double) If Me.CODE1 = "AS" Or "AL" Then Me.TotalA = Me.SPLIT1 * Me.Fee Else: Me.TotalA =...
  7. F

    Attach a subroutine to an unbound Text box?

    Have been trying to get a function to act as the control source as you suggested. The Function is simple and has no syntax or other errors but when I place it in the control source property it does not execute. Instead when I try to do a print preview of the report, the first thing that...
  8. F

    Attach a subroutine to an unbound Text box?

    I will try to do that. Thanks again, you have been a big help.
  9. F

    Attach a subroutine to an unbound Text box?

    That is exactly what I thought and my function in that form does nothing. Has no syntax error, but has no output in the text box. Must be something wrong with the function as written. Will attempt to rebuild it. Thanks for the quick reply.
  10. F

    Attach a subroutine to an unbound Text box?

    Just getting around to trying this. What is the syntax that is needed to call a function from within the control source properties box?
  11. F

    Attach a subroutine to an unbound Text box?

    Thank you for your help with this. I will try to rewrite the code again tomorrow and see if this changes anything. Again, thanks for your help.
  12. F

    Attach a subroutine to an unbound Text box?

    Every reference to a control in the code does have a control on the report. I do understand the visible property and have used it before. I do remove the labels associated with each control on the report as I don't need them. Should I leave them on the report in invisible mode? Don't...
  13. F

    Attach a subroutine to an unbound Text box?

    Tried the code with me. before all of the [ ] and received a number of syntax and unrecognizable errors. Me. [ ] has worked for me before but somehow it does not seem to be recognized. Is it possible that there is a better way to do this other than the Select Case syntax?
  14. F

    Attach a subroutine to an unbound Text box?

    Sorry for my ignorance, where should this code be placed? In the control source?
  15. F

    Attach a subroutine to an unbound Text box?

    If Code 1 = AS and Code2 = AF it will not go to the next line is correct. If they are not both true it should look at the next line where Code 1 = Al and code 2 is also AF. It that not true?
  16. F

    Attach a subroutine to an unbound Text box?

    Yes, they are the unbound textboxes.
  17. F

    Attach a subroutine to an unbound Text box?

    How do I "set the unbound controls" ?
  18. F

    Attach a subroutine to an unbound Text box?

    That sounds perfect. I will put the code in On Format. Thanks.
  19. F

    Attach a subroutine to an unbound Text box?

    What I want to happen is that based on the code below, different amounts of money will be displayed. This was originally assigned to the control source of the sub report, and then I tried assigning it to OnFocus event of the subreport. Neither one gave any errors on print preview, nor gave any...
Back
Top Bottom