我要选择一个COMBOBOX中的值 ,然后根据这个值来查询相应的数据库中表中的值,请问下应该怎么写这个查询代码?
------解决方案--------------------------------------------------------
下面的语句怎么样?
Select * from TableName where Field1=QuotedStr(combobox1.text)
------解决方案--------------------------------------------------------
sql = 'Select * from TableName where Field1="' + combobox1.text + '"'