Hi all,
I'm new at this, never did a thing with MS Access...
This is my problem..
I have a form with 2 listboxes, the left listbox (Batchfiles) gets its data from a select statement. The onclick event "sends" data to the right listbox (lstDetails) with another query.
Private Sub BatchFiles_Click()
lstDetails.RowSource = "SELECT LastName FROM Table WHERE ID = """ & BatchFiles.value & """
lstDetails.Requery
End Sub
I like to print the value of lstDetails.
I tried a lot of things, but none of them worked.. So finally i made a query with the query SELECT LastName FROM Table WHERE ID = ID .
Then I made a report that uses the above query. When I open the report a popup will ask the value of ID and the output is what i want...
Next I made a button on the form with the onclick event:
DoCmd.OpenReport "Incasso", acViewPreview
But when the button opens the report it will ask the value of the ID, how can i send this value to the report?
I hope anyone can answer my question..
grtz..
I'm new at this, never did a thing with MS Access...
This is my problem..
I have a form with 2 listboxes, the left listbox (Batchfiles) gets its data from a select statement. The onclick event "sends" data to the right listbox (lstDetails) with another query.
Private Sub BatchFiles_Click()
lstDetails.RowSource = "SELECT LastName FROM Table WHERE ID = """ & BatchFiles.value & """
lstDetails.Requery
End Sub
I like to print the value of lstDetails.
I tried a lot of things, but none of them worked.. So finally i made a query with the query SELECT LastName FROM Table WHERE ID = ID .
Then I made a report that uses the above query. When I open the report a popup will ask the value of ID and the output is what i want...
Next I made a button on the form with the onclick event:
DoCmd.OpenReport "Incasso", acViewPreview
But when the button opens the report it will ask the value of the ID, how can i send this value to the report?
I hope anyone can answer my question..
grtz..