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

synchronizing folder and database

kmpltd
12
Thanks to y'all, I have a photo database that works quite slickly. However, being kind of lax about such things, the linked folder (My Documents/My Photos/Database/) contains about fifty more photos than the database table [Photos]. Short of going over the whole thing file by file, of which there are fifteen hundred or so, is there a way to find out which photos are not entered in the database? I know how to do a query to find this sort of thing in tables, but not a folder.
Any hints?
Thanks in advance.
Jan 1 '08 #1
4 1281
ADezii
8,834 Expert 8TB
Thanks to y'all, I have a photo database that works quite slickly. However, being kind of lax about such things, the linked folder (My Documents/My Photos/Database/) contains about fifty more photos than the database table [Photos]. Short of going over the whole thing file by file, of which there are fifteen hundred or so, is there a way to find out which photos are not entered in the database? I know how to do a query to find this sort of thing in tables, but not a folder.
Any hints?
Thanks in advance.
How are the Photos stored in the Database? Are they in an OLE Object Field (Linked/Embedded), are just the Paths to the Files stored in the Database (..MyDocuments/My Photos/Database/Filenames, are they stored as BLOBs (Binary Data in an OLE Object Field)? I think you get the idea.
Jan 1 '08 #2
NeoPa
32,556 Expert Mod 16PB
The Dir() function should give you access to the information you require.
Let us know how you get on.
Jan 2 '08 #3
kmpltd
12
I've looked at the Dir() function and that seems like the way to go, but I don't know exactly how to write the code. Hell, I don't know how to write code; I just bootleg it from you guys, for which I am grateful.
I'm assuming that the code ends up in an expression in a query, but as I say, I don't know.
All the photos are Jpegs in a single folder, the path to which is a field in the table.
Table: Photos
Field: txtImageName
FieldValue:
[C:\Documents and Settings\Ken Paulson\My Documents\My Pictures\Database\PhotoName.jpg] where PhotoName is the filename in the folder.
Jan 4 '08 #4
NeoPa
32,556 Expert Mod 16PB
I can't develop the code for you as that's not what we're about here.
I appreciate you're not someone who likes to code from scratch so maybe a link (Basic DAO recordset loop using two recordsets) to some example recordset code will help.
Check out the help for the Dir() function. There is a piece of example code there too.
If you process through the directory using Dir() you can find if there is a match in your recordset. Alternatively you can use DLookup each time through the loop, but remember the performance may suffer.
Jan 5 '08 #5

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

Similar topics

3
by: Keith Veleba | last post by:
Hello to all fellow c.l.p'ers! Long-time listener, first-time caller. Background: I'm working on a project where I have to do some serious multithreading. I've worked up a decorator in Python...
0
by: SQLServer007 | last post by:
25 more days until the "get it free" promotion runs out for xSQL Object (you can get it from http://www.x-sql.com) Here are just some of the great features packed in the product: - Compare SQL...
1
by: Phil Matish, MCSE | last post by:
I have an Access database that I use frequently. Often, I take it to a home PC, or laptop to work on at night. The next day, I overwrite the old one with the one I have been working on. The...
1
by: Jeff Smith | last post by:
Hi This is a repost due to no responses Here's a problem I've encountered with Access 2003 which has got me to redesign how I get the row source in a second combo box using the first combo...
2
by: Christopher D. Wiederspan | last post by:
We are getting ready to move an ASP.NET application off of a single development machine and onto a "webfarm". Basically our webfarm is a bunch of identical servers with the load-balancing provided...
4
by: Chris Ochs | last post by:
We have a number of tables in a CRM that is written in MS access that I need to be able to provide a web interface to. I can export the tables just fine using pgadmin II, but I cant' think of a...
3
by: jodyblau | last post by:
I'm fairly new to access, so I hope this question isn't too elementary. I'm putting together a database for my office. I want the database to be accessible to 5 or 6 users on our network and so...
1
by: MAILTONRK | last post by:
Hi, I am a Mainframe guy. I am working with MS access(maintaining a application) for the last 2 weeks. I had one master database and four replicas. One of my replica had trouble in...
4
by: Veggis | last post by:
Hi We have this access application - which we use to register stuff into. Most of the time we're online, and that's all right, but now we need be able to register stuff offline, and then it...
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
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.