Nothern_Lights
asked on
Not Reading information from generated form
Dear Experts
I Have a problem its says frmProducts there are no items in the form when there is
The code I am using to generate the form is
Private Sub CmdSelectProducts_Click()
Dim frmProduct As frmProducts
Set frm = frmProducts
frmProducts.Caption = Screen.ActiveForm.Caption
frmProducts.Show
End Sub
This is the code for transfering the information from frmProducts to frmRemoveItem
For x = 1 To frmProducts.lstBill.ListIt ems.Count
Set litem = FrmRemoveItem.lstBill.List Items.Add( , , frmProducts.lstBill.ListIt ems.Item(x ))
litem.SubItems(1) = frmProducts.lstBill.ListIt ems.Item(x ).SubItems (1) ' col2
litem.SubItems(2) = frmProducts.lstBill.ListIt ems.Item(x ).SubItems (2) ' col3
litem.SubItems(3) = frmProducts.lstBill.ListIt ems.Item(x ).SubItems (3) ' col4
litem.SubItems(4) = frmProducts.lstBill.ListIt ems.Item(x ).SubItems (4) ' col5
Next x
Please Help
Nothern_Lights
I Have a problem its says frmProducts there are no items in the form when there is
The code I am using to generate the form is
Private Sub CmdSelectProducts_Click()
Dim frmProduct As frmProducts
Set frm = frmProducts
frmProducts.Caption = Screen.ActiveForm.Caption
frmProducts.Show
End Sub
This is the code for transfering the information from frmProducts to frmRemoveItem
For x = 1 To frmProducts.lstBill.ListIt
Set litem = FrmRemoveItem.lstBill.List
litem.SubItems(1) = frmProducts.lstBill.ListIt
litem.SubItems(2) = frmProducts.lstBill.ListIt
litem.SubItems(3) = frmProducts.lstBill.ListIt
litem.SubItems(4) = frmProducts.lstBill.ListIt
Next x
Please Help
Nothern_Lights
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.