Is this even possible?
I'm working on a project and its based on months!
Everytime I click a a button cmdRunMonthEnd I would like it to do the following. I will just explain from the part where I don't get it right!
I have a table TrnControl with the following fields:
TrnYear, TrnMonth, CurrentBalance, 1,2 through to 12 (months).
I also have this form called RunMonthEnd. With the following unbound textboxes:
Txt.Year, txtMonth, txtNewMonth, txtCurrentBalan ce and a command button cmdRunMonthEnd.
As I said, everything works as I want up to the point where click the button. When I click the button I want the following to happen if it's even possible.
When it is clicked I want it to update the table called TrnControl.
it should take the value from the forms text box called txtCurrentBalan ce and update one of the month's (1-12). It should update to the field which is in the txtNewMonth.
So if the txtNewMonth is 3, then it must take txtCurrentValue and update the field called 3 in that same record where TrnYear is the same as txtYear on the form.
please help, it seems impossible to me! Is it?
Thanks
Ryno
I'm working on a project and its based on months!
Everytime I click a a button cmdRunMonthEnd I would like it to do the following. I will just explain from the part where I don't get it right!
I have a table TrnControl with the following fields:
TrnYear, TrnMonth, CurrentBalance, 1,2 through to 12 (months).
I also have this form called RunMonthEnd. With the following unbound textboxes:
Txt.Year, txtMonth, txtNewMonth, txtCurrentBalan ce and a command button cmdRunMonthEnd.
As I said, everything works as I want up to the point where click the button. When I click the button I want the following to happen if it's even possible.
When it is clicked I want it to update the table called TrnControl.
it should take the value from the forms text box called txtCurrentBalan ce and update one of the month's (1-12). It should update to the field which is in the txtNewMonth.
So if the txtNewMonth is 3, then it must take txtCurrentValue and update the field called 3 in that same record where TrnYear is the same as txtYear on the form.
please help, it seems impossible to me! Is it?
Thanks
Ryno
Comment