well it's not really copy pasting...
this is my problem
I have an IF statement that is for if a person wants to take lessons on mulitple days it copies the information on the table and increments the date of the lesson and the visit day# and then fills in the form with all of the same info...and if statment to start everything off...if its true then my variables are declared...all of the fields on the form get copied to the variables, then I have a do while loop that fills in the form until the visit day# is the same as the #ofdays...
1) my code is pretty big and bulky, I'd love some ideas to slim it down...
2)my loop isn't quite doing what I want...when I start the loop and begin filling in the fields with what is stored in the variables, for the date fields I increment the date by +1 and then store it in the field name...problem is that my dates keep incrementing by +2 everytime...even if I change the incremnt to,say, +4 it still goes up by +2...
3)my do while statement keeps going one past what it should, even if I have < or <= in my statement...it will do the one extra when you begin enter data for the next person/record...
sorry if I kind of rambled...hope this makes a little sense for you all...feel free to ask more questions of me...
thanks in advance
this is my problem
I have an IF statement that is for if a person wants to take lessons on mulitple days it copies the information on the table and increments the date of the lesson and the visit day# and then fills in the form with all of the same info...and if statment to start everything off...if its true then my variables are declared...all of the fields on the form get copied to the variables, then I have a do while loop that fills in the form until the visit day# is the same as the #ofdays...
1) my code is pretty big and bulky, I'd love some ideas to slim it down...
2)my loop isn't quite doing what I want...when I start the loop and begin filling in the fields with what is stored in the variables, for the date fields I increment the date by +1 and then store it in the field name...problem is that my dates keep incrementing by +2 everytime...even if I change the incremnt to,say, +4 it still goes up by +2...
3)my do while statement keeps going one past what it should, even if I have < or <= in my statement...it will do the one extra when you begin enter data for the next person/record...
sorry if I kind of rambled...hope this makes a little sense for you all...feel free to ask more questions of me...
thanks in advance