Jump to content

Type mismatch: 'CLng'


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...