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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum Thing Wrong

Status
Not open for further replies.

robuk65

Programmer
Aug 17, 2001
2
GB
Hi I was wondering if anyone could help

What I am trying to do is take a balance away from a preset value (£30) and display in another forms list box

The problem is I cannot get it to show minus figures, it does it the first time but when i go back to the data input form it has changed the value in the text box.

I am not sure if I am on the right track here at all
------------------------------------------------------------
Private Sub cmdlist_Click()

member(current).account = 30#

If Val(txtaccbal.Text) <> 30 Then

member(current).account = member(current).account - Val(txtaccbal.Text)

Else

End If

frmtonelist.Show
 
honestly cant see your problem from the info you gave
BUT
have some sub do your work
like:

sub subtractThis(someValue as double)
form2.listbox.add 30-someValue
end sub

tryp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top