473,398 Members | 2,427 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,398 software developers and data experts.

Search in Access

33
Me again. Please tell me how I can do the following: I have a report listing the results from a number of fields from a query result. The 1 spesific fileld results must be displayed as a hyperlink on my report (this I have done). When you click on the hyperlink, the following should happen:
The file name in a specific directory on the local machine must be searched and the file name that corresponds with the name of the hyperlink must be opened.
Please, if possible (but I fear it is not possible) no VB coding as my VB sucks
Attached Images
File Type: jpg Notice.jpg (13.0 KB, 165 views)
Dec 2 '08 #1
25 1881
Stewart Ross
2,545 Expert Mod 2GB
Sorry, Riaane, but if (as I suspect) you need assistance with some form of coursework or assignment question we really cannot do the work for you. If you have a specific problem, one which you have already made an attempt to resolve, please feel free to ask us for advice. In any event, you will undoubtedly need to use code to achieve what you ask, regardless of whether or not you wish to do so.

I will close this thread at present to prevent other posters unwittingly assisting you with plagiarism of coursework. Please feel free to PM me if I've got this wrong so I can reopen the thread.

MODERATOR
Dec 2 '08 #2
Stewart Ross
2,545 Expert Mod 2GB
Riaane has contacted me to advise that she is not a student and this post is not a homework question. Accordingly I have re-opened this thread as promised in reply #2.

MODERATOR
Dec 5 '08 #3
riaane
33
Thank you for understanding Stewart. My query is not covered in any of the online Access Help documentation I could find so help on this issue will really be appreciated.
Dec 6 '08 #4
nico5038
3,080 Expert 2GB
You should first consider to change from using a report (that should only be used for printing output) to using a form.

Nic;o)
Dec 6 '08 #5
riaane
33
Hi Nico, I have changed my search result to display on a Form as a Hyperlink. I can only assume I need VB code to now go and search for the matching record with the file name of the Hyperliunk in a directory on my local machine? Thie matching file will have a .tif extension. Can you or anyone help me with the VB coding to pount to
1. a spesific directory or
2. just the Common Dialogue to Browse to the directory where the file with the name of the Hyperlink is situated? Note that there are anything from 200,000 to 800,000 files in the directory that has to be seached.
Attached Images
File Type: jpg SearchForm.jpg (16.2 KB, 174 views)
Dec 7 '08 #6
riaane
33
Maybe I must rephrase my question to ensure that I do not limit the scope of possible solutions to my problem:
How do I link to a file (with .tif extension, therfore an image file) from within the result set of a Select Query in Access 2007? The name of the file I need to open is listed in the result of my Select Query as a number only (without the .tif extension) and the .tif files are all situated in 1 directory on the local machine. In other words, a Query result lists a number of records and one of the fields of each record has a numeric string that has to be matched with a file with the same "numeric string.tif" name in a folder on the locam mahine. When clicking on the Hyperlink of the the field containing the numeric string, the click Event should open the relevant .tif file. I will gladly send the ACCESS DB and some sample .tif image files to anyone that is willing to help me on this and needs some sample data.
Dec 7 '08 #7
nico5038
3,080 Expert 2GB
Hmm, just wondering when you have a "fixed" name (being the number) and filepath, why you don't use an unbound image and show the image on the form.
The "De Luxe" version would check or a file does exist and display a default image showing "No Image".

Idea ?

Nic;o)
Dec 7 '08 #8
riaane
33
Please note that the result of my Query (from an original table consisting of >250,000 records) contains 39 fields, only 1 of which contains a list of all the file names in the folder consisting of >250,000 .tif image files. I therefore must search for the correct .tif image file relating specifically to the record relating to that image. I currently have no way to access the correct 'tif file in my folder from the record listed on my Form.

Does that make sense? Thanks Mate for taking the trouble of helping me :-)
Dec 7 '08 #9
nico5038
3,080 Expert 2GB
Can you post a small sample of your .mdb ?
Can I deduct that you use one or more multiple-value fields to hold the file names ?

Nic;o)
Dec 7 '08 #10
riaane
33
Here you go.

The relevant search (on the main Form) is "Find Warrant". Use the following 2 ID Numbers as examples:

7608245057081 - This should then link to the file 1002864800006538.tif in a folder on the local machine
6508025786084 - This should then link to the file 1003484800007778.tif in a folder on the local machine

Excuse my humble way of making the DB work but I have never done an Access course and time is tight at this stage so I'm hacking my way around my challanges *blush
Attached Files
File Type: zip WOA Database.zip (194.5 KB, 71 views)
Dec 7 '08 #11
nico5038
3,080 Expert 2GB
OK riaane, I've added a sample how I would "attack" this problem.
I always start with a "selection" form so users can use the right-click popup menu to do the filtering and the action buttons to manage the selected row.
You'll find that entering the ID# is easily giving false results because of typo's.
I also spotted a search on Surname and with my selection form the user can even enter a partial name to search by entering e.g. "*han*".

As the location of the .tif files can differ, I've added a table (tblSystem) to hold the path and added the active path to the form. By pressing the folder button you can dynamically set the Path to another location/folder.

I've added my sample and for the helpfile I give my users to work with the right-click pop-up menu see my last comment in http://bytes.com/topic/access/answer...-access-2007-a.

Nic;o)
Attached Files
File Type: zip WarrantsNico5038.zip (102.0 KB, 99 views)
Dec 7 '08 #12
riaane
33
Looks promising but I get the attached error when selecting "Show Warrant scan" - maybe a VB class missing on my puter?
Attached Files
File Type: zip ShowWarrantScanError.zip (93.1 KB, 91 views)
Dec 7 '08 #13
nico5038
3,080 Expert 2GB
Sorry, forgot to remove a statement, check this file.

Nic;o)
Attached Files
File Type: zip WarrantsNico5038.zip (97.0 KB, 72 views)
Dec 7 '08 #14
riaane
33
GREAT! this works.

Only problem is, there is no way the operator can select the relevant record from a record set of 200,000 to 800,000 records on data sheet view. My original search function must still remain and the result of that search (Find Warrant) must result in your form "frmWarrantSelection" with the matches found in the WOA record set in the Data Sheet view. I will play with what you gave me as I don't want to take up more of your time.

Thanks so much for your help!!
Dec 7 '08 #15
nico5038
3,080 Expert 2GB
The idea is to use the right-click pop-up to do the filtering. The right-click and putting the ID# in the "Filter for" field will do the same as your input-form triggered by the query.
But also a search for the Surname and/or court can be achieved.

Entering the ID# manually will always hold the error of typo's, using the data sheet will allow some control.

Check out the Right-click Instruction !

Getting the idea ?

Nic;o)
Dec 7 '08 #16
riaane
33
Ahh ok gotcha.

Problem is that the use of this is on a random query of the population to see if there are any matches on the recordset in the person's ID Number. Therefore a typed in search criteria will always have to be used as the operator is tasked with finding out of the random person in front of them has any records as listed in the WOA Table.

So the operator can right-click and select "Text Filters - Equals...", but how do you then return to the full record set data sheet view after your search?

I will try and build a button that will return the form to fully populated view.
Dec 7 '08 #17
nico5038
3,080 Expert 2GB
After right-clicking in the Surname and entering e.g. "*hans*" (without quotes but with the *'s) Access will fill the data-sheet with all rows holding "hans" anywhere in the Surname.

Just try yourself.

Nic;o)
Dec 7 '08 #18
nico5038
3,080 Expert 2GB
You cold also right-click the ID# and use your sample value "7608245057081".
You'll see three rows that hold this value...

Nic;o)
Dec 7 '08 #19
riaane
33
Nico, we are talking past each other here :-)

I get the results you point out. However, the searches are repeated many times per hour, each on different ID#'s so the operator must be able to return to the full record set to enable him/her to do the next search on the full record set, not only on the previous match list.

I can click on the "Filtered / Unfiltered" button on the bottom taskbar but I would like to have a "Return Full Record Set" button below the "Show Warrant Scan" button for ease of use.

Sorry for the confusion. I will try and dream up a button that does this.
Dec 7 '08 #20
nico5038
3,080 Expert 2GB
Hmm, something like this attachment perhaps ?

I've build in the past a solution where the filter is stored in a table, so allowing the user to re-use them...

Nic;o)
Attached Files
File Type: zip WarrantsNico5038_2.zip (103.6 KB, 93 views)
Dec 7 '08 #21
riaane
33
Nico, you are BRILLIANT! Thanks so much for your help and patience. Your beer is in the mail ;-)
Dec 8 '08 #22
nico5038
3,080 Expert 2GB
Glad I could help.

Some tips:
. There's some VBA code "behind the forms", perhaps you'll now be able to understand it. It's better to use VBA instead of the macro's you were using.
. Try not to use spaces in table and field names.
. Use (like I did with the table and forms) prefixes like tbl / qry and frm to identify the database objects.

Success with your application!

Nic;o)
PS I hope it's a "Trappist" that's being mailed <LOL>
Dec 8 '08 #23
riaane
33
Nico, 1 last question: The operators that will use this system are complete technology Philistines and many of them can literally barely drive a mouse. Please can you tell me how I can replace the Right’click-Search process with a button that pops up a little form allowing you to enter the ID Number and the “Search” to execute the query. The result should still be displayed in the data sheet view.

I'm a little lost without my trusty old Macro's.....
PS: My 1st installment is attached. I selected one of the Belgium versions as the ones in your native Netherlands may be too well-known to you ;-)
Dec 8 '08 #24
nico5038
3,080 Expert 2GB
You've selected one of my favorites. There's only one Dutch Trappist and some 6 Belgian.

I've added a solution that's using a combo box to select the (distinct) ID's.
A combo box has an auto-append feature, thus typing an existing code will show the "final" part, but when a typo is made the trailing part will be empty...
Just try it yourself. I prefer this way as it's supporting the user.

Nic;o)
Attached Files
File Type: zip WarrantsNico5038_3.zip (101.6 KB, 89 views)
Dec 8 '08 #25
riaane
33
"You have done well, young Skywalker. Your training is complete" ;-)
Dec 9 '08 #26

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

Similar topics

7
by: WindAndWaves | last post by:
Hi Gurus I am keen to make a search page on a website, but I have absolutely zero experience with PHP. I am going to hire an expert, but I thought that it may pay to try it a bit first myself...
83
by: D. Dante Lorenso | last post by:
Trying to use the 'search' in the docs section of PostgreSQL.org is extremely SLOW. Considering this is a website for a database and databases are supposed to be good for indexing content, I'd...
9
by: Jack-of-all-traits | last post by:
I have certain words, or groups of words (4 or less) input in my fields in Access 2002 xp pro atmosphere. The data is essentially in the tables., so what I want to do is get access with the...
1
by: Jack-of-all-traits | last post by:
This is a big problem and I really need help, no one seems to know how to solve this problem. I want to take the data from a record in a particular a field that contains the names of generic...
3
by: jj | last post by:
Hi NG I have a form, where I can activate the search and replace dialogbox when pressing a button. My problem is that the dialogbox opens with the default that it should search for full match...
8
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled...
2
by: Homey! | last post by:
Hello all I am new to Access. I have imported data from an old FoxPro 2.x database. This is probably the most basic function but I cant get a search box to work. I need to search for company name...
4
by: visionstate | last post by:
Hi there, I'm fairly new to access and the way it works and I have been building a relatively simple database. It is basically a database where staff members can search for what training they (or...
1
by: Reef81 | last post by:
Does anyone know a way to have the search parameters displayed in the query or report? For example, if I set up a parameter to search all entries in my table, is there a way to have the search...
18
by: dlesandrini | last post by:
Has anyone noticed that the Google Groups Advanced Search no longer works correctly? Is it something I'm doing or have others noticed the change? Used to be, if I put *access* in the Groups...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...

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.