Access Conversion / Runtime error 5

Joined
Feb 3, 2011
Messages
1
Reaction score
0
I recently converted from Access 97 to 2007, but cannot open my files... It displays "Run-time error 5" and asks to debug. The underlined line in italics below is where the problem lies.
Any suggestions on how to fix this? I am not very familiar with VB, so treat me as a novice...
Thanks!

For Each ctl In frm.Controls
strTemp = ctl.Name
strTag = Nz(ctl.Tag)
If strTag <> "" And strTag <> "DetachedLabel" Then
strLang = Left$(strTag, 1)
If strLang = "E" Then
intCtlLang = cLangEnglish
strTag = Right$(strTag, Len(strTag) - 1)
ElseIf strLang = "L" Then
intCtlLang = cLangLocal
strTag = Right$(strTag, Len(strTag) - 1)
Else
intCtlLang = langID
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top