473,379 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

connection using javascript and access database

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.     <head>
  3.         <title>Entitled Document</title>
  4.         <script language="JavaScript">
  5.         function get()
  6.         {
  7.             var cn = new ActiveXObject("ADODB.Connection");
  8.             var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Users\Chinku\Desktop\my-program\QUIZ.mdb;Persist Security Info=False";
  9.             cn.Open(strConn);
  10.             alert("Connected");
  11.             var rs = new ActiveXObject("ADODB.Recordset");
  12.             var SQL = "select count(*) from qz";
  13.             rs.Open(SQL, cn);
  14.             alert(rs(0));
  15.             rs.Close();
  16.             cn.Close(); 
  17.  
  18.         }
  19.         </script>
  20.     </head>
  21.     <body>
  22.         <input type="button" value="Get count" onclick="get()">
  23.     </body>
  24. </html>
  25.  
Jan 27 '15 #1
1 1736
twinnyfo
3,653 Expert Mod 2GB
kisore81178,

Please provide more information. We have no idea what your problem is or what it is that you are trying to solve.
Jan 27 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: csgraham74 | last post by:
I have an ms access database that runs perectly fine locally - when i upload it to the server i get "exception has been thrown by the target of the invocation" on any database connections. I...
1
by: clowtown | last post by:
I am fairly new to database programming in java. I have used odbc to make connections to access dbs but I was wondering how I could connect directly to an access db on my local machine. Do I have...
1
by: Colin Graham | last post by:
i am currently developing an asp.net web application which is linked to an Access database. The main problem that i have is in creating a global connection string that i can use. When i put my...
0
by: Guillermo | last post by:
Gentlemen, I'm trying VB.Net 2005 Beta2. I have an Access database in my website (wemdb01.mdb). I need to connect my application to it, in order to work with its data. When I try to add the URL I...
7
by: kowndinya | last post by:
Hello, i have developed a small program in VB 6.0 and the backend is MS ACCESS. i want to know who is currently logged ms access database. Some body accessing this database by using my program...
3
by: koliver | last post by:
Can anyone provide me with information on linking an Access database with GPS mapping software
1
by: sibyabin | last post by:
sir, i wish to study the advance features of java script .....Can u please tell How we will connect Javascript with Excel as back end .... Can U please forward some example codings or give some...
15
by: hotflash | last post by:
Hi Crocrew et. All, So far everything is working fine however, I want more security by adding a Username: Admin and Password: Test to my MS Access Database. I have 2 separate databases on my...
1
by: Drew Longo | last post by:
I am creating a form in visual C# 2008 and placed a data grid view control on it. I created a new connection, specified a microsoft access database, but get an error message after selecting the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.