sql - VBA select not returning any rows -


The list below is not returning any row to the list. There is no error message:

  LstDiff.RowSource = "Select TestScenario, testId from TBTist where empid = '' & amp; Me.txtEmpId.Value & Tested = & '' Tested = '" & Amp; Me.txtAutoNumber.Value & amp;  

Can anyone help?

Individually, whenever I use the SQL statement in the code, I like to store the statement in a convertible. When you test after assigning your statement at a variable , So you dub To see the print that your SQL statement looks after after parsing your TestMedD and TestTurner, this will look like this.

  String in the form of SSKLL SSQLLL = "Select Test Sessenario, TLDBTT from TestID, where empid = '& amp; Me.txtEmpId.Value & amp; "'And Tested ='" & amp; Me.txtAutoNumber.Value & amp; "" "Debug.print ssql listdif. Rossosource = ssql  

Until your instant window appears (Ctrl-G), you can see what exactly your SQL statement is If it looks properly in the immediate window, copy it and paste it into the query builder and run it there.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -