Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Expected: =

Posted on 1999-07-24
4
Medium Priority
?
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

722 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