[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Expected: =

Posted on 1999-07-24
4
Medium Priority
?
180 Views
Last Modified: 2010-04-30
I have a function in a module
Function txtval(textcontrol As String, nub As String)
If Val(textcontrol) > 0 Then
    Form1.Timer1.Interval = 100
    Form1.Text76 = Form1.Text76 - 1
        Else: Form1.lblnum
End If
End Function

I can call this function but when I try to get the second argu. in there I get the error Expected: =

here is the call

txtval (Me.Text1, Me.txtr)

Why is it I am not able to get second argument in?
0
Comment
Question by:rtcomp
  • 3
4 Comments
 
LVL 7

Accepted Solution

by:
kamall earned 400 total points
ID: 1527231
What I can see, the problem is in the line:

    Else: Form1.lblnum

which should be:

    Else
       Form1.lblnum = xxxx

Hope that helps.
0
 
LVL 7

Expert Comment

by:kamall
ID: 1527232
Also, change your call
    txtval (Me.Text1, Me.txtr)
to be
    RetVal = txtval (Text1, txtr)

Regards.
0
 

Author Comment

by:rtcomp
ID: 1527233
Works like a charm.


   Thanks.
0
 
LVL 7

Expert Comment

by:kamall
ID: 1527234
You are welcome rtcomp.
Best regards.
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

608 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