PC Review


Reply
Thread Tools Rate Thread

Can't find New Queries via Microsoft.Jet.OLEDB.4.0

 
 
Jim Bunton
Guest
Posts: n/a
 
      3rd Mar 2006
Windows 2000
Access 2000

? currentdb.Version
4.0
Tried:
* reboot
* currentdb.Containers(8).Documents.Refresh


PROBLEM - connecting to my Access database through Cn.Provider =
"Microsoft.Jet.OLEDB.4.0" from an asp script NEW queries are not recognised.


Function ValidSupplierLogin(uId, Pwd)
Dim cnGoodsInStock, sql, rsSuppliersLogin
Dim testname
testname = "test"
Set CnGoodsInStock = OpenConnToGoodsInStock()
'FOR TESTING"
sql = "SELECT * FROM qSuppliersInfCOPY " 'A
'sql = "SELECT * FROM qSuppliersInf " 'B
sql = sql & " WHERE CompanyName =" & """" & testname & """"
'END FOR TESTING
Set rsSuppliersLogin = OpenSqlSet(Sql, CnGoodsInStock, adOpenStatic,
adLockReadOnly)
response.write sql & "<BR>"
response.write "?recordset.BOF>" & rsSuppliersLogin.bof
response.end
If rsSuppliersLogin.bof then
ValidSupplierLogin = False
else
ValidSupplierLogin = True
end if
End Function

With line B included
SELECT * FROM qSuppliersInf WHERE CompanyName ="test"
?recordset.BOF>False

With line A included
Error Type:
Microsoft JET Database Engine (0x80040E37)
The Microsoft Jet database engine cannot find the input table or query
'qSuppliersInfCOPY'. Make sure it exists and that its name is spelled
correctly.
/goodsinstockdev/cgi-bin/MyInclude.asp, line 200



NB - has been working fine for 2 weeks! BUT not TODAY


NOTE - to create the connection:- [works fine!!!]
Set Cn=Server.CreateObject("ADODB.Connection")
Cn.Provider = "Microsoft.Jet.OLEDB.4.0"
Cn.Properties("Data Source") =
"d:\SolutionsNet\GoodsInStock\GoodsInStockWebDb.mdb"
'Cn.Properties("Connect Timeout") = "5"
Cn.Properties("User ID") = "Admin"
Cn.Properties("Password") = ""
Cn.open
set OpenConnToGoodsInStock = Cn




--


Jim Bunton


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Can not find Microsoft.Jet.OLEDB.4.0 moondaddy Microsoft VB .NET 4 19th May 2009 04:06 PM
Re: Can not find Microsoft.Jet.OLEDB.4.0 moondaddy Microsoft VB .NET 0 19th May 2009 01:15 AM
where to find Microsoft Jet.OLEDB.4.0? GusGomez Microsoft Access External Data 0 11th Sep 2008 05:19 AM
Heterogeneous oledb queries Santi Microsoft ADO .NET 0 7th Feb 2006 07:07 PM
Batch Queries with OLEDB H. Williams Microsoft ADO .NET 3 10th Mar 2005 12:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 PM.