Section one runs great, but when i run section 2 in the code it does not set the where correctly. I dump the values from the memVar, requery the table, then run a compair to then insert values where they are in one table but not the next. My code looks like it should work correct.
Section 1)
WITH ThisForm.Agenda_List
FOR indx = 1 to .ListCount
SELECT agenda_order_info
M.MEETING_DATE = meetingdate
M.PM_ID = VAL(.ListItem(.IndextoItemID(indx), 1))
M.AGENDA_ORDER = indx
INSERT INTO agenda_order_info FROM MEMVAR
NEXT
ENDWITH
Section 2)
REQUERY('agenda_order_info')
INSERT INTO agenda_order_info (pm_id, meeting_date) ;
SELECT pm_id, meeting_date FROM agenda_order_view;
WHERE agenda_order_view.meeting_date = meetingdate AND agenda_order_info.pm_id <> agenda_order_view.pm_id
Section 1)
WITH ThisForm.Agenda_List
FOR indx = 1 to .ListCount
SELECT agenda_order_info
M.MEETING_DATE = meetingdate
M.PM_ID = VAL(.ListItem(.IndextoItemID(indx), 1))
M.AGENDA_ORDER = indx
INSERT INTO agenda_order_info FROM MEMVAR
NEXT
ENDWITH
Section 2)
REQUERY('agenda_order_info')
INSERT INTO agenda_order_info (pm_id, meeting_date) ;
SELECT pm_id, meeting_date FROM agenda_order_view;
WHERE agenda_order_view.meeting_date = meetingdate AND agenda_order_info.pm_id <> agenda_order_view.pm_id