Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

[RESOLVED] check between to dates to display results error why?

$
0
0
i am trying to check some values from a table and display the results in a report
i get error why?
what is wrong?
this is my code
Code:

Private Sub BttnShow_Click()
  Set DtChkReport.DataSource = CN.Execute("SELECT ChkDate, ChkName, ChkNumber, ChkAccount, ChkAmount " & _ "FROM Checks WHERE " & _ 
"ChkDate BETWEEN #" & MyDate(Dstart.Value) & "# AND #" & MyDate(Dend.Value))
 DtChkReport.Show 1
End Sub

Name:  untitled.jpg
Views: 38
Size:  14.0 KB
any help will be appreciated
regards salsa31
Attached Images
 

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>