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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Connection String for Access DB

Status
Not open for further replies.

fsub

Programmer
Feb 2, 2006
60
US
Hi...in my .aspx connection file, I have the following codes.

<script language="VB" runat="server">
<Dim myConnection as new OleDbConnection
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\database\tblPhone.mdb"
providerName="System.Data.OleDb">
</script>

I am getting this error....Compiler Error Message: BC30183: Keyword is not valid as an identifier.

I am new with VB/aspx programming so I'd probably need to recode. Any help is appreciated.
 
Wrong forum. Post this in the Visual Basic.Net forum or the ASP.Net forum.

I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top