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

OpenArgs & integer data question

Status
Not open for further replies.

mpruett

Programmer
Jul 22, 2005
13
0
0
US
Ok... I have a form that opens another form based on whether or not something is in a combo box. It finds a record in the second form that gets its information passed in via the form's OpenArgs. Since the value I'm looking up is a string, this works fine.

On the second one of these I'm trying to do, I need to pass an integer.

I get the second form opened and the OpenArgs value looks like '''2343'''. I can't tell if it's a "', '" or ''' to be honest.

Either way, I need to change that '''2343''' into an integer, and I don't know how. I've tried something like:

Dim intvalue as Integer

intvalue = CInt(me.OpenArgs)

but it doesn't work- still gives me a Type Mismatch.

What is the problem here, and how do I get around it?
 
How are ya mpruett . . .
Code:
[blue]    intvalue = [purple][b]Val[/b][/purple](me.OpenArgs)[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top