Home > Back-end > This code will look not to come out, the what reason
This code will look not to come out, the what reason
Time:09-24
Everybody is good, I use the Delphi xe10 programming a management software, access database programming has been completed, to transform his MSSQL 2008, two date format to convert to query, this made it, but several related programming can use before is how to return a responsibility, I am using database control is adoconnectin and adoquery1,
adoquery1. SQL. The clear; Adoquery1. SQL. The Add (' the SELECT LSXSD. Id, LSXSD. Kh, LSXSD. KHMC, LSXSD. XSRQ, CKXX. CKMC,, LSXSD. Czy, LSXSD. JBR FROM LSXSD INNER JOIN CKXX ON LSXSD. Ck=CKXX. Id where LSXSD. KHMC='" + combobox2. Text + "' "' + 'and XSRQ between' ' '+ s1 +"' "' + 'and' ' '+ s2 +"' "); Adoquery1. Open;
This code will look not to come out, the reason
After I remove the link can be found out to
adoquery1. SQL. The clear; Adoquery1. SQL. The Add (' SELECT id, kh, KHMC XSRQ, CKMC, czy, JBR FROM LSXSD where LSXSD. KHMC='" + combobox2. Text + "' "' + 'and XSRQ between' ' '+ s1 +"' "' + 'and' ' '+ s2 +"' "); Adoquery1. Open;
So I have to the entire program to change, have what good way!
CodePudding user response:
Has nothing to do with the controls, the access itself to join the support of the connection is not very good, not too complex and barely used, SQL statements are must change, to support both writing,