Code:
If (iKeyId = CInt(InputBox("Enter Key ID"))) Then
Stop
End If
iKeyId = CInt(InputBox("Enter Key ID"))
If iKeyId Then
In the first one iKeyID will always be 0.
I believe this is because VB thinks i want to do compare and not assign. Does anyone know a way round this or shall i keep with method B.....
Rich.
Programmers are tools for converting caffeine into code