Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hope its possible

Status
Not open for further replies.

lashwarj

IS-IT--Management
Nov 1, 2000
1,067
US
I am trying to get my listbox to dump new values without deleteing the values already in the system. The user opens a form and a list box is populated with values, the user then can add new values, I wanted to be able to run a test and dump the values not already in the system when the user saves. My code below is giving me a nesting error.




WITH ThisForm.Approval_Name_Info_List
SET DECIMALS TO 0
FOR indx = 1 to .ListCount
SELECT pm_lk_permit_name
M.KEY_ID = (Vpm_id)
M.LINK_TYPE = .ListItem(.IndextoItemID(indx), 2)
M.NA_ID = VAL(.ListItem(.IndexToItemID(indx), 3))
M.KEY_TYPE ='pm'
INSERT INTO pm_lk_permit_name (na_id, key_id, link_type, key_type);
SELECT na_id, key_id, link_type, key_type FROM MEMVAR ;
WHERE MEMVAR.NA_ID <> pm_lk_permit_name.na_id AND MEMVAR.LINK_TYPE <> pm_lk_permit_name.link_type ;
 
Hi,

I don't know about what you're tryin to do, but you don't have a closing
Code:
next

Regards

Griff
Keep [Smile]ing
 
I have my list box dumping to my memvar, then from there i am dumping to a table, I wanted to accomplish that but throw a where clause in the works. If you look in the help and search for insert into it shows how you can do a where, but mine is generating a nesting error
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top