I have a table (Session_lst) which is a list of appointments. It has the following fields
Session_lst
---------------------
Session_ID
Session_date
Session_time
Session_duration
Agent
Agent_mgr
Appt_booked
---------------------
I want the table to book the appointments with myself and the Agent, and the Agent_mgr (as optional) in outlook calendar. I am comfortable with the VBA to schedule the meeting, but I struggle with loop to go through the table. I want the loop to do something like this:
Loop through table. Enter any appointment for which field Appt_booked <> true
For each appointment added to outlook, set Appt_booked = true
However, I also forsee that appointments will get cancelled and rebooked, re-using the same Session_ID, but updating the record. So I think I need to use a For Each loop, rather than a Do while loop, but I am not so confident with my loop.
I also found a thread about recordsets on this forum. Am I on the right path by using a recordset?
Session_lst
---------------------
Session_ID
Session_date
Session_time
Session_duration
Agent
Agent_mgr
Appt_booked
---------------------
I want the table to book the appointments with myself and the Agent, and the Agent_mgr (as optional) in outlook calendar. I am comfortable with the VBA to schedule the meeting, but I struggle with loop to go through the table. I want the loop to do something like this:
Loop through table. Enter any appointment for which field Appt_booked <> true
For each appointment added to outlook, set Appt_booked = true
However, I also forsee that appointments will get cancelled and rebooked, re-using the same Session_ID, but updating the record. So I think I need to use a For Each loop, rather than a Do while loop, but I am not so confident with my loop.
I also found a thread about recordsets on this forum. Am I on the right path by using a recordset?