Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variables
Message
From
29/11/1999 12:24:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/11/1999 12:20:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00296416
Message ID:
00296418
Views:
18
>I have a form that has a combo box and a command button. The combo box references a table called 'doctors' for example. The table has a field called drname which is displayed in a dropdown combo box.
>The command button under command1.click runs a query to search the drname field for the highlighted name in the combo box. How do I tell the query under command.click which name is currently highlighted in the combo box?
>I've tried referincing the combo box in the query by--
>Under command.click I placed:
>
>'vdrnam = thisform.combo1.value'
>
>then my query filter says:
>
>'where drname = m.vdrnam'
>
>Any suggestions on what else I could try?


You could directly use :
where drname = thisform.combo1.value

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform