Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table insert from combobox
Message
From
02/12/1999 16:06:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Table insert from combobox
Miscellaneous
Thread ID:
00298163
Message ID:
00298163
Views:
56
I ahve a from with several child tables. One of those needs to have a new record added from the parebt form. What I would like to do is allow that to happen fron an existing combobox. The box has:

Rowsourcetype = fields
rowsource = child.text,child_key
colums = 2
bound colum = 2
col widht = 50,0

In the Lostfocus event, I would like to (p-code follows)
if colum2 isnull
insert into child (text) values (colum1)
this.value = child.child_key
this.requery
endif
this.refresh

But I am darned if I can find a way in provided samples to check a single coloum.
Next
Reply
Map
View

Click here to load this message in the networking platform