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

Printing selected record data report vb6

$
0
0
Can someone help me?. I'm having a trouble displaying filter records in datagrid to data report. I'm trying to print the selected record by date using filter,but when I print it, all the data in database are display instead of the selected ones. Can someone help me.thank you. Here is my code

Code:

DataEnvironment1.rsCommand1.Open "select * from patients where ID & Lastname & Givenname & DateNow = ''"
DataReport4.Refresh
DataReport4.Show
DataEnvironment1.rsCommand1.Close


Viewing all articles
Browse latest Browse all 21251

Trending Articles