|
-
Nov 3rd, 2000, 11:16 AM
#1
Thread Starter
Lively Member
Hey ya'll,
I'm trying this code for :
when user selects multiple rows in a listview and then wants them printed on one printout! (that's the idea anyhow!)
code :
Dim X As Object
Dim i As Integer
Dim db As Database
Dim rs As Recordset
Dim vaOsTime As String
Dim vaOsDate As String
vaOsTime = Time
vaOsDate = Date
If ListView1.SelectedItem Is Nothing Then Exit Sub
For i = 1 To ListView1.ListItems.Count
If ListView1.ListItems(i).Selected = True Then
Dim strSource, strCaption, strText As String
Dim strFooker As String
Dim strDBName As String
Dim strPepp0, strPepp2, strPepp3
strDBName = DBPath()
strFooker = ListView1.ListItems(i).SubItems(1)
strSource = "SELECT * FROM Class4 WHERE Detalj
LIKE '" & strFooker & "'"
End If
Next i
ActiveClassView.DAODataControl1.DatabaseName = strDBName
ActiveClassView.DAODataControl1.RecordSource = strSource
ActiveClassView.Label14 = Date
ActiveClassView.Label15 = Time
ActiveClassView.Printer.Orientation = ddOLandscape
ActiveClassView.Show
Users only get the first row selected printed, can anyone help me to get all rows selected printed?
//Patrick
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|