I am using MSAccess in which I have created a table booking and the name of the database is Project. When i run the file it gives following error: The Microsoft Jet database engine cannot open the file 'C:\Users\Yusuf Lappy\Documents\Project.mdb'. It is already opened exclusively by another user, or you need permission to view its data. Below is the code which i have used:
<%
dim objConn, strConn, objRS
Set objConn = Server.CreateObject("ADODB.Connection")
strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="& _
"C:\Users\Yusuf Lappy\Documents\Project.mdb"
objConn.Open strConn
Set objRS = Server.CreateObject("ADODB.RecordSet")
objRS.Open "booking", objConn, 2, 2
objRS.AddNew
objRS("FNAME")=Request.Form("T1")
objRS("LNAME")=Request.Form("T2")
objRS("SOURCE")=Request.Form("D1")
objRS("DEST")=Request.Form("D2")
objRS("DOJ")=Request.Form("T3")
objRS("NOP")=Request.Form("T4")
objRS("MEAL")=Request.Form("R1")
objRS.Update
objRS.Close
%>
I am the admin of my laptop. I am usin Windows 7 Home and IIS 7. Kindly help