My code is below, how would i make a id field that puts numbers by the order they are in the list box. My table will consist or 3 fields, the Approval_id, Referal_Type, and PRINT_ORDER
WITH ThisForm.Referal_Types
FOR indx = 1 to .ListCount
SELECT approval_lk_referal
M.APPROVAL_ID = (Vapproval_id)
M.REFERAL_TYPE = .ListItem(.IndexToItemID(indx), 2)
INSERT INTO approval_lk_referal FROM MEMVAR
NEXT
ENDWITH
WITH ThisForm.Referal_Types
FOR indx = 1 to .ListCount
SELECT approval_lk_referal
M.APPROVAL_ID = (Vapproval_id)
M.REFERAL_TYPE = .ListItem(.IndexToItemID(indx), 2)
INSERT INTO approval_lk_referal FROM MEMVAR
NEXT
ENDWITH