Sign in to follow this  

Visual Basic 6 with Database

This topic is 4226 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im trying to read some values of some fields, make a multiplication and then add the result to a database. I tryed to do this: Private Sub cmdCalc_Click() Dim op1 As Single Dim op2 As Single op1 = Val(txtQuant.Txt) op2 = Val(txtUni.Txt) txtTotLiq = Op1 * Op2 End Sub But the problem is that when i try to write txtQuant. apears Count, Item, LBound and Ubound, dont apears .Txt Why??

Share this post


Link to post
Share on other sites
my guess is that the txtQuant is a control array
i.e. you have an index property for multiple controls called txtQuant. You need to find out what control index you want to write to is from the control properties , then reference it like this

txtQuant(1).text = value.

Share this post


Link to post
Share on other sites

This topic is 4226 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this