473,503 Members | 11,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disk catalog in Access

Hi all,

I want to create a simple disk catalog system with Access.

The important thing is that I want to make sure that the database has one
record for each file in a certain directory. So, I need some synchronising
mechanism.

First I should loop through all the files in the directory and see if for
each filename there is a record in the database (PK is filename). If not, a
record should be created.

To complete the synchronise I think I should loop through all the records
in the database and see if for each record there is still a file in the
directory. If not, the record should be deleted.

I am a newbie to VBA. I am googling for a whole day now, but I've found
nothing. In this group someone pointed me in the direction of using
FindFirstFile and FindNextFile API. I've tried that, but my knowledge of
VBA is too little.

Can please someone help me with the code?

Thanks,

Koen
Nov 12 '05 #1
1 2075
On 26 Nov 2003 10:46:44 GMT, Koen <no@spam.nl> wrote:

That's not how it works, Koen. The newsgroup is not a code factory.
You write the code, we provide hints and feedback.

If you're not a programmer, become one or hire one. This newsgroup's
official site http://www.mvps.org/access/ has a list of books you
might be interested in.

In the Hints department I might add that FindFirstFile is one approach
worth following. Another one is the use of the Dir function that can
be used to get a list of all files in a folder. To keep things
synchrtonized, I would need to know more about why and how critical it
is. Perhaps you can just delete all old records and re-scan the
folder. For advanced synchronization (requiring advanced programming
skills) you can register your app with the file system, so you can get
notifications when something changes (this is what antivirus programs
use).

-Tom.

Hi all,

I want to create a simple disk catalog system with Access.

The important thing is that I want to make sure that the database has one
record for each file in a certain directory. So, I need some synchronising
mechanism.

First I should loop through all the files in the directory and see if for
each filename there is a record in the database (PK is filename). If not, a
record should be created.

To complete the synchronise I think I should loop through all the records
in the database and see if for each record there is still a file in the
directory. If not, the record should be deleted.

I am a newbie to VBA. I am googling for a whole day now, but I've found
nothing. In this group someone pointed me in the direction of using
FindFirstFile and FindNextFile API. I've tried that, but my knowledge of
VBA is too little.

Can please someone help me with the code?

Thanks,

Koen


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1688
by: Simon Harvey | last post by:
Hi everyone, I'm hoping for a little bit of advice on the following. I am in the process of making a small application that can send, receive and store email messages. The current area that I am...
6
3959
by: Mark | last post by:
I understand the concept of catalog cache (memory allocated from the dbheap to allow catalog lookups without the need to access disk each time). But the DB2 catalog tablespace (SYSCATSPACE) is...
6
1469
by: MLH | last post by:
I want to be able to read the file size of my config.sys file or other file from withing Access Basic module. I'm sure its already been done. Don't wanna reinvent wheel or lug nuts, etc.
1
1544
by: Guadala Harry | last post by:
Suppose two different servers (two different physical machines - no clustering or farming going on here) on the same network: 1: Web Server (2003/IIS6) 2: SQL Server .... and an ASP.NET Web...
1
8027
by: Vincel2k2 | last post by:
Hi, I need to provide Access reports from our web site. When the app gets to the output command I get this error I get this error: The formats that enable you to output data as a Microsoft Excel,...
20
2075
by: Deano | last post by:
Just looking at C Sharp to see if it might be worth my while learning something new. Has anyone here tried a .NET language and tried to replicate a existing Access app? I would be interested to...
27
3201
by: SQL Learner | last post by:
Hi all, I have an Access db with two large tables - 3,100,000 (tblA) and 7,000 (tblB) records. I created a select query using Inner Join by partial matching two fields (X from tblA and Y from...
10
6985
by: WannaKatana | last post by:
I am just wondering why, with nothing else running and executing an update query against a very large table, does Access seem to be causing less than 10% processor usage. Then it says "There is not...
3
9528
by: PW | last post by:
Hi, One of our clients is getting that error when they are trying to save a record but I can not duplicate it here. The data is on another PC and is linked to two workstations. The code...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7364
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...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5604
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.