Hi Bill,

Try this syntax instead:

I take it that Population and MyTable is the real names for the table and
the column
and not variables/constants containing the real names.
***************************************************************************
*****
Dim  MySQL as String

'1. If Population contains numbers:
MySQL = "Population > 10000"

'2. If Population contains strings:
MySQL = "Population > " + Chr$(34) + "10000" + Chr$(34)

If MyTable is the actual name of the table:
Run Command "Select * from MyTable Where " + MySQL
***************************************************************************
*****

Hope this will help you on!

Best regards,

Peter
***************************************************************************
*
Peter Moller        [EMAIL PROTECTED]
GIS-Developer       Direct: +45 6313 5008
Kampsax        Voice: +45 6313 5013
Rugaardsvej 55      Faximile: +45 6313 5090
DK 5000 Odense C    Web: www.mapinfo.dk
MapInfo Authorized Partner
***************************************************************************
*


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to