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!

set cn = Server.CreateObject("ADODB.Connection") on offce XP Access?

Status
Not open for further replies.

MAWarGod

Programmer
Feb 15, 2002
352
US
'::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
'' GLOBAL DECLARATIONS AND DATABASE CONNECTIONS
'::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

''' initiate global vars and constants
dim action
dim b_error, a_errors, error_list, a_msg, msg_list
dim cn, cmd, rs, rsselect, sql, do_search, a_records

''' instantiate error handling and messaging
set error_list = CreateObject("Scripting.Dictionary")
set msg_list = CreateObject("Scripting.Dictionary")

''' initiate db objects and connections

''''' app database
set cn = Server.CreateObject("ADODB.Connection")
cn.Open "provider=microsoft.jet.oledb.4.0;data source=" & server.MapPath("data\7207.mdb") & ""

''''' user database (may be the same as app)
set user_cn = Server.CreateObject("ADODB.Connection")
user_cn.Open "provider=microsoft.jet.oledb.4.0;data source=" & server.MapPath("data\7207.mdb") & ""

''''' command object
set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = cn

''''' recordset object
set rs = Server.CreateObject("ADODB.Recordset")

Ok on My 2000 Access I opened the database this way Now I upgraded to XP and My database will not open

can anyone Help?

thank You

MAWarGod
Kicking My database yelling work!!!
 
May I just ask what this has to do with MySQL? It looks to me like you aren't even using MySQL... //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top