473,386 Members | 1,705 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,386 software developers and data experts.

Finding database

hi there. i'm developing a project with database but i'm new at this and i've got some problems with the code. It appears to me the error 'Can't find ..ISAM!'. can u help me? thanks
Mar 24 '08 #1
10 1176
VBWheaties
145 100+
hi there. i'm developing a project with database but i'm new at this and i've got some problems with the code. It appears to me the error 'Can't find ..ISAM!'. can u help me? thanks
Post your code. Installable ISAM error can be related to a few things.
Mar 24 '08 #2
Killer42
8,435 Expert 8TB
Just so you know Sophie, this error probably has nothing to do with finding the database. It's generally about not being able to find the correct installed driver software for a particular type of database.
Mar 25 '08 #3
Just so you know Sophie, this error probably has nothing to do with finding the database. It's generally about not being able to find the correct installed driver software for a particular type of database.



So can u help me writing the right code so it can find the folder where the database is?
Mar 25 '08 #4
Killer42
8,435 Expert 8TB
So can u help me writing the right code so it can find the folder where the database is?
Can you show us what you're doing now? As I said, I don't think that error has anything to do with locating the database.

You need to be more specific about what you need the code to do. For instance, does it need to go searching through all the drives at runtime, trying to track down a database with a specific name? If so, this seems a rather inefficient and error-prone way to handle things.
Mar 26 '08 #5
Yes, I need a code that will search through the drives and the database with the specific name.. i know that's something like 'Appth...' but it gives me an error all the time..
Mar 26 '08 #6
lotus18
866 512MB
Yes, I need a code that will search through the drives and the database with the specific name.. i know that's something like 'Appth...' but it gives me an error all the time..
I think it is App.Path. As just like what Killer42 said, post some of you codes here for reference. A simple Common File Dialog will solve this problem.

Rey Sean
Mar 27 '08 #7
Killer42
8,435 Expert 8TB
If you want to scan through all the directories on a drive to find a file with a particular name, then the technical details will depend on what version of VB you're using.

In the latest version, for instance, I gather you can use this...
Expand|Select|Wrap|Line Numbers
  1. string[] filenames = System.IO.Directory.GetFiles("path","search pattern", System.IO.SearchOption.AllDirectories)
to generate an array of the file names. However, I think this doesn't tell you where the files are, just their names. Try the search box, you should find plenty of info from prior questions about this topic. In fact, have a look at this thread from a couple of days ago. I think you'll find the short answer in post #14, but it might be a good idea to read through the thread to get an idea of what's going on.

In VB6, you'd probably need to write a routine which would scan a directory (preferably using FileSystemObject). For each file it finds, it would do whatever you want. For each directory it finds, it would call itself recursively to scan that directory.

I plan to post a generic VB6 routine in the HowTo's section fairly soon which will scan the directory structure like this, but it's not there yet.
Mar 27 '08 #8
I'm using VB6.

This is the code: App.Path = "BaseDados_PAT.dmb"
now it doesn't give me tge error but it doesn't appear anything in the datafields.
Mar 27 '08 #9
lotus18
866 512MB
I'm using VB6.

This is the code: App.Path = "BaseDados_PAT.dmb"
now it doesn't give me tge error but it doesn't appear anything in the datafields.
If you are using access, change it to

Expand|Select|Wrap|Line Numbers
  1. App.Path = "BaseDados_PAT.mdb"
Rey Sean
Mar 27 '08 #10
VBWheaties
145 100+
I'm using VB6.

This is the code: App.Path = "BaseDados_PAT.dmb"
now it doesn't give me tge error but it doesn't appear anything in the datafields.
"BaseDados_PAT.dmb" is not a path. Did you mean "mdb"?
MDB is an Access database file. I dont think dmb is anything database related.

Your biggest problem is communicating the issue. There is no source code posted as was asked, and the one line of code (app.path) will not generate the error described above.

I know you think were good but were not THAT good. Post up your code. :)
Mar 27 '08 #11

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

Similar topics

0
by: Dan Muey | last post by:
Howdy List! A couple questions about finding the disk space used by a = table/database: 1) First how can I get the size a table is taking up on disk? Is it the 'Data_length' field in: SHOW...
2
by: User 2084 | last post by:
Hello all. I'm an access newbie trying to learn how to do basic database data manipulations. I had a hard time searching the archives on this question as I don't really know what I'm looking for in...
3
by: louise raisbeck | last post by:
Hi there, I have a brain block on finding a repeater item which matches a field from the row of the datasource. If my datasource has a column called 'somethingid' i want to find the repeateritem...
9
by: Laurent Bugnion | last post by:
Hi, I am wondering what is the best way to find out which ASP.NET sessions are still active. Here is the reason: I have a custom control which can upload files. It saves the files in a folder...
2
by: ElkGroveR | last post by:
Hi there! I'm using PHP to create a simple, dynamic MySQL SELECT query. The user chooses a selection from a HTML Form SELECT element's many options and submits the form via a POST action. ...
2
by: Extremest | last post by:
Here is the code I have so far. It connects to a db and grabs headers. It then sorts them into groups and then puts all the complete ones into another table. Problem I am having is that for some...
2
by: Fred Wilson | last post by:
Hello, How does one go about finding all the tables that have a particular field name? For example a field name "EVENT_CODE" I would like to find all the places in the database this is...
8
by: Jerim79 | last post by:
I am working on a script that will query a database for a FNAME/LNAME combo. If it finds the combo, I need it to do one set of instructions. If it doesn't find it, I need it to do something else....
3
by: MarkMYoung | last post by:
I'm trying to transform an ugly Lotus Notes database into a condensed XML file for loading into another product that only needs ~25% of the data. For some reason, my template matches only work for...
1
by: Deepmala26 | last post by:
Hi, I m doing a project in VB.NET. I've created form and database connectivity is done. I've displayed data in Datagrid through which user can sort and find records. for finding...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.