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?
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?