J
John Melbourne news
Possible Access 2000 Visual Basic Bug
I have an access database with a reasonable quantity of VB code behind the
forms.
One event sequence requires opening a text file and reading a few hundred
characters. I was getting 'runtime error 458 -- variable uses an
automation type not supported in visual basic'
Since I had used that particular bit of code in other places without any
problem I tried to find out what was causing it. The result is very odd
indeed.
I normally declare all variables at the top of a code page:
Including the line:-
Dim aaA, bbB, ccC As String
resulted in the error 458 when attempting to open the text file but using
the two lines:-
Dim aaA, bbB As String
Dim ccC As String
worked with no problem!
Can anyone explain
John Melbourne
I have an access database with a reasonable quantity of VB code behind the
forms.
One event sequence requires opening a text file and reading a few hundred
characters. I was getting 'runtime error 458 -- variable uses an
automation type not supported in visual basic'
Since I had used that particular bit of code in other places without any
problem I tried to find out what was causing it. The result is very odd
indeed.
I normally declare all variables at the top of a code page:
Including the line:-
Dim aaA, bbB, ccC As String
resulted in the error 458 when attempting to open the text file but using
the two lines:-
Dim aaA, bbB As String
Dim ccC As String
worked with no problem!
Can anyone explain
John Melbourne