Buy here

  • Buy music products with Hartnolls Guitars
  • Buy music products with Scan Computers
  • Buy music products with drumwright
  • Buy music products with Andertons Music Company
  • Buy music products with Thomann
  • Buy music products with Red Dog Music
  • Buy music products with Professional Music Technology
Old 01-18-2009, 03:39 PM   #1
dafuzz
Senior Member
 
dafuzz's Avatar
 
Join Date: Feb 2008
Location: SE London
Posts: 3,079
Default Access 2003 help

I've been asked to build a database in Access to keep track of a range of documents in .doc, .pdf and .html formats that're scattered all about a network drive.

I'm going to build a form so that new documents can be added and have keywords assigned, another form that will allow a search, and a report that will display the matching documents and allow the user to click on the relevant document and have it open in its relevant app (Word, Adobe Reader, etc).

I've found some VBA snippets that I can use, but before I set about reinventing the wheel does anybody know of a pre-existing template that does something similar? There may be one in Access (I'll be using 2003 btw) but I only have Open Office at home and that doesn't. I'll have... err... access to Access in the week but I want to get started now.

Any pointers very much appreciated.
__________________
All practise and no theory
dafuzz is offline   Reply With Quote
Old 01-29-2009, 09:16 AM   #2
dafuzz
Senior Member
 
dafuzz's Avatar
 
Join Date: Feb 2008
Location: SE London
Posts: 3,079
Default

I've got this off the ground but I'm a bit stuck.

In a nutshell - how do I search for text strings within a list of documents returned by an Access 2003 query? The documents are returned as pathnames (e.g. H:\meetings\janminutes.doc)

I assume the best way to do this is to pass my query results to windows explorer and use the built in search function there. That way I could have a button on my report form that, when clicked, fires up windows explorer with all the returned docs listed in there and the search pane open ready to take parameters.

I've figured out how to call explorer with the search frame open pointing at any folder I like using a shell command, and how to use a previously saved .fnd (saved windows search but parameters only, not results) but I can't figure out how to pass my query results for further searching. I've toyed with the idea of copying all the documents to a temp folder but if 1000+ docs are returned by the query this might take ages. I thought of creating and using shortcuts instead but windows won't search for text within a file via a shortcut link.

I reckon if I can figure out the syntax I can build my own .fnd on an ad hoc basis using VBA attached to a report form button, but I'm failing utterly to make sense of it after opening one in both notepad and a hex editor. I'm labouring under the assumption that I can specify a list of files rather than a folder as the basis for a search (as you can search within your search results again using explorer) but this may not be possible. Google is keeping schtum on the whole debacle.

Any suggestions? Thoughts? Any input whatsoever anybody please? Am I barking up the wrong tree entirely and there's a built in Access function I can use? Anything that will take a list of pathnames as an argument and allow text searching within those documents?

Thanks for reading if you made it this far
__________________
All practise and no theory
dafuzz is offline   Reply With Quote
Old 01-29-2009, 01:44 PM   #3
holnrew
Senior Member
 
holnrew's Avatar
 
Join Date: Feb 2003
Location: Cheltenham
Posts: 20,391
Default

No idea, but good luck.
__________________
Nick Botfield once stood on the shoulders of giants. It was then that he realised he was afraid of heights.
holnrew is offline   Reply With Quote
Old 01-29-2009, 01:47 PM   #4
thereformant
Senior Member
 
thereformant's Avatar
 
Join Date: Mar 2004
Location: The (IV) Millenia
Posts: 4,498
Default

Quote:
Originally Posted by dafuzz View Post
I've been asked to build a database in Access to keep track of a range of documents in .doc, .pdf and .html formats that're scattered all about a network drive.
HAhAHAHAHAHAHAHAHAHAHAHAHAHAA rather you than me
__________________
No Forbidding Allowed
thereformant is online now   Reply With Quote
Old 01-29-2009, 03:40 PM   #5
manicguitarist2
Senior Member
 
manicguitarist2's Avatar
 
Join Date: Apr 2005
Location: Lancashire
Posts: 14,072
Default

Erm....this may not be entirely useful...but I believe that you are entering a world of pain with a combination of access/vb/forms/data access pages.

It would be trivial in the extreme to create something akin to your requirements using C# and SQL Server Express - all of which can be had for free.
__________________
------------------------------------------------
www.stircrazy.org
Making the world a louder place!
------------------------------------------------
manicguitarist2 is online now   Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:41 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.