Hi,
I need populate data in listbox based on two conditions in combobox1 and depends on filled textboxes.
the original data when I fill in textboxes and combobox1 is empty
so based on filled date in textbox6=09/10/2023 and textbox3=5 and combobox1 is empty will should do:
1- in first column should populate names as show ( it always should show four items).
2- based on textbox6=09/10/2023 should calculate to reach year (meaning should be 09/10/2024 as show in second column ) , the next column show next year ,should calculate one year depends on previous column contains date in row1.
3- the maximum years should be 5 years as show until 09/10/2028 depends on textbox3= 5
4- as mounts for adjacent item in first column and under date for each year should copy from textbox1,textbox5(brings amount from textbox1 will just for second column after that next column will depend on previous column for last amount in last row ) , last item NET COST OF MACHINES = sum amounts for COST OF MACHINES , DEPRECIATION VALUE for each date .
6- the next year will brings amount from last amount in previous year
example : in third column will take 8400 from second column in last row . so on every next year will take amount from last amount is existed in last row for previous column .
the result should be
if I select YEARLY from combobox1.
then just apply based on current yearly .
result
so in this case will show for 2024 after I leave 2024 and enter 2025 and when reach for 09/10/2025 then should show for year 2024,2025
and so on for entering new year, then should keep old years when add new year .
my date format will be DD/MM/YYYY
thanks
I need populate data in listbox based on two conditions in combobox1 and depends on filled textboxes.
the original data when I fill in textboxes and combobox1 is empty
so based on filled date in textbox6=09/10/2023 and textbox3=5 and combobox1 is empty will should do:
1- in first column should populate names as show ( it always should show four items).
2- based on textbox6=09/10/2023 should calculate to reach year (meaning should be 09/10/2024 as show in second column ) , the next column show next year ,should calculate one year depends on previous column contains date in row1.
3- the maximum years should be 5 years as show until 09/10/2028 depends on textbox3= 5
4- as mounts for adjacent item in first column and under date for each year should copy from textbox1,textbox5(brings amount from textbox1 will just for second column after that next column will depend on previous column for last amount in last row ) , last item NET COST OF MACHINES = sum amounts for COST OF MACHINES , DEPRECIATION VALUE for each date .
6- the next year will brings amount from last amount in previous year
example : in third column will take 8400 from second column in last row . so on every next year will take amount from last amount is existed in last row for previous column .
the result should be
if I select YEARLY from combobox1.
then just apply based on current yearly .
result
so in this case will show for 2024 after I leave 2024 and enter 2025 and when reach for 09/10/2025 then should show for year 2024,2025
and so on for entering new year, then should keep old years when add new year .
my date format will be DD/MM/YYYY
thanks
Last edited: