
Originally Posted by
rpeare
Ok based on your description this is one of the few times I would suggest using a temporary table.
Whenever you're doing predictions you do NOT want it to generate a record in your 'live' data. In other words, creating 'fake' appointments that may or may not ever be met is going to needlessly clog your system with data that you will eventually have to clean up (let's say you have a person that misses their appointment this month but comes in next, you would want their next 3 month appointment to come three months from NEXT month, not the appointment they missed so ALL of the 'fake' appointments you put in would be garbage, you'd have to delete them all and re-run your appointment generator).
With the use of a temp table you can cycle through all of your clients and project out when they would come in for their clinic follow ups for the next x many months (or years) based on their most recent kept appointment and their 'interval'.
You're going to need VBA code to do it regardless and I can show you how to do that if you're not comfortable with it, but you definitely DO NOT want to create your projections on your actual scheduling table, that's a big, big mistake in my opinion. Doing it on a temp table and purging/adding records is far less dangerous.