|
-
Feb 9th, 2000, 02:49 AM
#1
Thread Starter
Addicted Member
Using the following code:
Set db = DBEngine.Workspaces(0).OpenDatabase("C:\access files\S and B.mdb")
List1.Clear
Select Case Index
Case 0:
sSQL = "Select * from [Customers Query Name] where [Company Name] Like '" & Text1.Text & "*'"
Set rs = db.OpenRecordset(sSQL, dbOpenDynaset)
List1.Enabled = False
I get an error on my set rs line but when I look at a different database with fewer tables in, its fine any ideas??
-
Feb 9th, 2000, 07:04 AM
#2
Hyperactive Member
Maybe you could use an error handler and message box
on error goto Handler
.
.
.
Handler :
msgbox err.description
to get better details of the problem
-
Feb 9th, 2000, 02:17 PM
#3
Guru
get rid of dbOpenDynaset and try it again, sometimes those parameters cause errors in certain situations....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|