J
JC
I'm trying something new and don't seem to be able to get it to work. I have
a listbox in the middle of the form. The form is set up to take down
customer data and store it in a table. However, I want a listbox on the form
that will show previously entered customer data (orders). Then, I want to
double click on one of the items in the list box and have it bring up that
particular order as a report.
I have everything working great, with the exception of the report will only
to the specified order when the first item in the list is selected (it will
open to that specific item). If I select one of the subsequent items in the
listbox, it will open a blank report.
This is the chunk of code I'm using to do this with:
Private Sub ListBox1_DblClick (Cancel As Integer)
DoCmd.OpenReport "rptOrder", acViewPreview, , "Order_Number =
[Forms].[frmOrderEntry].[ListBox1]"
End Sub
Thanks in advance
- Jc
a listbox in the middle of the form. The form is set up to take down
customer data and store it in a table. However, I want a listbox on the form
that will show previously entered customer data (orders). Then, I want to
double click on one of the items in the list box and have it bring up that
particular order as a report.
I have everything working great, with the exception of the report will only
to the specified order when the first item in the list is selected (it will
open to that specific item). If I select one of the subsequent items in the
listbox, it will open a blank report.
This is the chunk of code I'm using to do this with:
Private Sub ListBox1_DblClick (Cancel As Integer)
DoCmd.OpenReport "rptOrder", acViewPreview, , "Order_Number =
[Forms].[frmOrderEntry].[ListBox1]"
End Sub
Thanks in advance
- Jc