Jump to content

Type mismatch: 'CLng'


@bc

Recommended Posts

hi guys.. i got his Type mismatch error..Type mismatch: 'CLng' :) here's half the code...

              If Trim(RstINVENCode(0)) = "123" Then             INCode = ITEMCODE & "-" & YR & "0001"         Else          ICode = RstINVENCode(0)             strIC = Mid(ICode,13,7)             strcode = Mid(strIC, 3, 4)             strcode = CLng(strcode) + 1                          OLDYear = cstr(Mid(strIC, 1, 2))                          if (clng(OLDYear)+1) =  clng(YR)  then    	strcode = "0001"        	strcode = Clng(strcode)             end if                      

The error is in this code line: strcode = CLng(strcode) + 1Anyone willing to help?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...