Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to multiply 2 listbox values and show it in textbox

Status
Not open for further replies.

AccDeveloper

Programmer
Jul 13, 2003
7
0
0
CA
Hi,

I know this is trivial but I stuck. How to multiply the values of 2 listboxes and assign the result to a textbox.

Any help is appreciated.

Thx,
Vic
 
row1 = Me.lst1name.ListIndex
row2 = Me.lst2name.ListIndex

me.txtboxname = me.lst1name.column(0, row)* me.lst2name.column(0, row)*

Durible Outer Casing to Prevent Fall-Apart
 
ignor the last *, sorry bout that

Durible Outer Casing to Prevent Fall-Apart
 
You mean this ?

Dim Row1, Row2 As Integer
Row1 = Me.List272.ListIndex
Row2 = Me.List276.ListIndex


Me.Text290 = Me.List272.Column(0, Row1) * Me.List276.Column(0, Row2)

Seems not working

Vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top