Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compilation error

Status
Not open for further replies.

campbemr

Technical User
Aug 16, 2001
19
US
I include the adovbs.inc file in one of my applications and because of this I am getting a compilation error.Microsoft

VBScript compilation error '800a0411'

Name redefined

/campbemr/adovbs.inc, line 14

Const adOpenForwardOnly = 0
------^

Why is this happening?


 
Be sure that "adOpenForwardOnly" appears only one time in adovbs.inc and in your code it is not being set equal to any value:

NO:
adOpenForwardOnly = [anything]
or
Dim adOpenForwardOnly
or
Const adOpenForwardOnly


YES:
objRS.CursorType = adOpenForwardOnly

Hope this helps :)

 
I have this same problem and I checked all you said to no avail; anything else?

HELP!
Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top