|
First of all, you must make sure that the string entered in your text box can be converted into a value normally, and then directly substituted into the SQL statement according to the string.No conversion is required. When substituting, you can consider the following method:
drs.open "select * from table name where MoneyField="+cstr(val(text1.text)), yourcn
After two data conversions under VB, it is to convert the content in the text box into a string that can indeed be interpreted by SQL as Money |
|