Hi,
I have a form called New Project having 3 fields
- StartDate
- EndDate
- Visitno
And Subform called dbo_Job_new projects_Add having 3 fields
- PPM #
- PPM Date
- Visit Type
I require a code to add to a button once clicked the system will chck the startdate and enddate and visitno and add new schedule of visits in the sub form. e.g.:
startdate: 01/01/2023
enddate: 31/1/2023
visitno : 4
system will generate the following rows :
ppm # ppm Date Visit Type
1 02/01/2023 SA
2 02/04/2023 Q
3 02/07/2023 Q
4 02/10/2023 Q
note there is 3 types of visits
1. SA (System acceptance, always the first visit)
2. Q (Quarterly, every 3 months)
3. M (Monthly, used if the no of visits 12, then it should be SA-Q-M-M-Q-M-M-Q-M-M-Q-M)
I have a form called New Project having 3 fields
- StartDate
- EndDate
- Visitno
And Subform called dbo_Job_new projects_Add having 3 fields
- PPM #
- PPM Date
- Visit Type
I require a code to add to a button once clicked the system will chck the startdate and enddate and visitno and add new schedule of visits in the sub form. e.g.:
startdate: 01/01/2023
enddate: 31/1/2023
visitno : 4
system will generate the following rows :
ppm # ppm Date Visit Type
1 02/01/2023 SA
2 02/04/2023 Q
3 02/07/2023 Q
4 02/10/2023 Q
note there is 3 types of visits
1. SA (System acceptance, always the first visit)
2. Q (Quarterly, every 3 months)
3. M (Monthly, used if the no of visits 12, then it should be SA-Q-M-M-Q-M-M-Q-M-M-Q-M)