M
malik via AccessMonster.com
Hi
I have a form Name "FrmDrVoucher" and a SubForm "FrmDrVoucherBodySubForm" In
this form. I have "AccountNo" Txtbox Control in SUbForm. After this control I
have a small button by pressing it a new form appears with a list box having
all my customers Id's and names....
I wanted that by double clicking on a customer name in list box, It fill up
the
AccountNo in my SubForm with selected CustomerId from Listbox.
For This I used the Following Code in ListBox Dbl Click Event (in newly PopUp
Form)
Private Sub List0_DblClick(Cancel As Integer)
[Forms]![FrmDrVoucher]![FrmDrVoucherBodySubform].[Form].[AccountNo] = Me.
List0
Me.Close
End Sub
No I want to use the same form for many forms as
FrmCrVoucher
FrmSales
FrmJVoucher
etc...
Plz tell me that how can I use the Only One Form (withListBox) to select
Parties for several forms.
Thank You
I have a form Name "FrmDrVoucher" and a SubForm "FrmDrVoucherBodySubForm" In
this form. I have "AccountNo" Txtbox Control in SUbForm. After this control I
have a small button by pressing it a new form appears with a list box having
all my customers Id's and names....
I wanted that by double clicking on a customer name in list box, It fill up
the
AccountNo in my SubForm with selected CustomerId from Listbox.
For This I used the Following Code in ListBox Dbl Click Event (in newly PopUp
Form)
Private Sub List0_DblClick(Cancel As Integer)
[Forms]![FrmDrVoucher]![FrmDrVoucherBodySubform].[Form].[AccountNo] = Me.
List0
Me.Close
End Sub
No I want to use the same form for many forms as
FrmCrVoucher
FrmSales
FrmJVoucher
etc...
Plz tell me that how can I use the Only One Form (withListBox) to select
Parties for several forms.
Thank You