Solved

What's Wrong in my code

Posted on 2009-04-02
2
228 Views
Last Modified: 2012-05-09
What's wrong in my code?
The code would not identify the exact figure of the txtbox.
example if my Amntdue is 105 then AmntPaid is 104 it will not exit sub which supposed to exit sub

Private Sub cmdNext_Click()

    If AmntDue.text > Trim(AmntPaid) Then

        MsgBox "Hello"

            Exit Sub

                End If

End Sub

Open in new window

0
Comment
Question by:Whing Dela Cruz
2 Comments
 
LVL 11

Accepted Solution

by:
bmatumbura earned 500 total points
Comment Utility

Private Sub cmdNext_Click()

    If CDBl(AmntDue.text) > CDBl(Trim(AmntPaid)) Then

        MsgBox "Hello"

            Exit Sub

                End If

End Sub

Open in new window

0
 

Author Closing Comment

by:Whing Dela Cruz
Comment Utility
Thanks to you,
the code is working
More power!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now