Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Extreme HELP with something ... less intellegent
Message
From
20/06/2002 04:08:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Need Extreme HELP with something ... less intellegent
Miscellaneous
Thread ID:
00670498
Message ID:
00670498
Views:
70
Sorry Guys,
I am trying to put together a couple of combo boxes where comboB is dependent on CombA via SQL and selection source. This is my code, and it kinda works except it wouldnt put the selected value into my table.
I have put a customized event into the form where it is activated on the click event of combo A.

my code -->
local lcRowSource
lcRowSource = 'Select institude.institude, contact.contactid from institude, contact, discipline where '

lcRowSource = lcRowSource +alltrim(thisform.combo1.value)+ ' = discipline.disciplineid AND discipline.disciplineid = contact.disciplineid'

lcRowSource = lcRowSource + ' AND contact.institude = institude.institudeid into cursor csrDetails'
With thisform.pageframe1.page1.combo2
.RowSourceType = 3
.RowSource = lcRowSource
.Requery()
.columncount = 2
.boundcolumn = 2
.controlsource = positions.contact1id
EndWith

--> my code ends
now, the row values can accept my query statement and comboB will return listing stuff I have requested, but however, the result selected wouldn't return to control source, can someone tell me whats wrong with it? I kinda need this to meet my deadline~ hehe (yes, last minute stuff)

Thankx guys sooo much~
Tom
Next
Reply
Map
View

Click here to load this message in the networking platform