Database Search Help

Feb 13, 2007

Hi All,

This is my first post to the group. I am starting out on ASP. I have done a simple registration form, things are going on well here, now i am creating a search display that takes in a value from the search field on the HTML form and queries that on the access database and populate the remaning fields on the form. I have an field ID on the database to auto-number and track each record.

How do you go about doing this ?, how to have an if else condition to know when to stop searching and return control ?
Can i have something like this ?

strSQL="Select * from userinfo WHERE Request.Form("uname")=rs("user_fname")"

I am stuck because there's no control statement to generate the next set of code to display and populate the fields. I also need to know how to extract all information of a record based on. I have just started to learn...

Thanks!
Vj

View Replies


ADVERTISEMENT

Using One Search Button To Search 4 Tables In A Database?

Mar 10, 2008

I have a database that uses four forms and each form has it's own table and each form has it's own search button to find a specific record within that table. I would like to use one search button that will look at all four tables and bring up the correct record when the request number is entered. Can I link all the tables to perform this or is code required? Can someone send me in the right direction for how to do this? Give me an example of code if it's required?
Thanks for any help I can get.

Laura Edmark

View 7 Replies View Related

Reports :: Search Results Report Shows All Database Records / Not Just Search Results

Apr 29, 2014

I have built a custom search form in a MS Access 2010 database so that users can find specific records to edit. After entering the search criteria and hitting a Search button, another form opens up that shows the search results. This second form includes a command button for generating a report of the search results.

Right now, the custom search form and the search results form are both working properly, but the search results report is showing every record in the database instead of just the search results. This is true whether I access the report via the command button in the form or the navigation pane. I'm not sure if I need to correct my VBA code or the report's properties.

View 4 Replies View Related

How To Search Database

Jun 14, 2007

hello,

I have made a database in access, my question is what do i need to do to be abble to search the database with a webbrowser-like interface, its just for my local machine, no internet.

thx for any help

View 1 Replies View Related

Search From Database

Nov 13, 2007

My database contains Student Number, Student Name, Last accessed, Marks, Subjects registered.

When a student enter his/her number in the text box and click "search" button, all the deatils listed above should be display in the same page or in the new page.

Im new to asp and this is my second project on ASP. So Its dificult for me to do this..

Im using Access and classic asp..
How to write the query for search and How to do this? Any idea,, Pls help me..

View 2 Replies View Related

Jazz CD Database Search Help

Aug 14, 2005

Hi,

First post here, and first up I will admit to being very much a first time user, although with *some* experience of access and VB coding in Excel (from back at school!!!) and a fairly technical mind.

I am a jazz musician, and have tried to create a database of all the CDs / records that I own so that i can search for either a player or a song title and can see details of all albums that feature my search criteria. I thought this would be fairly easy, and although I have been able to create a query (and then a report to show this clearly) when searching for a player (i.e. search for "Bill Evans" under the field "Piano", the same can not be easily done for my song search, where I have a different field for each song (with a max of 21 fields available!). This would require me making a query for a song 21 times, with each query searching under a different of the 21 'song' fields.

There must be a way of doing this much more efficiently...I am envisaging having a search box coming up which would search all records for the criteria entered and then create a report showing all records containing matches.

Is this possible? I am fast discovering that there is MUCH more to Access than initially meets the eye, and if the answer would be too long to give then some guidance in the right direction would be great!

Thanks in advance,

Steve

** EDIT ** I tried to upload my project but sadly it was too large. I will try and reduce its size and re-attempt or will upload it to some webspace.

View 9 Replies View Related

Search Through A Serial No. Database

Sep 3, 2007

Hi, I have been trying to make a datbase so I can input the serial number of an electronic device (cell phone boards) , and also would like to be able to add additional info about the device. Most importantly I have to be able to "search" for the device by typing the serial number in a search box.

So lets say I have serial number 11111, 11112, 11113, 11114 listed in the database as "intermittent power failures", before I use the device I can type the serial number in the database and be able to recall the details. So if I type in 11119 and no hits come back, I know that one is not in the system yet; meaning it ethere does not have a problem, or the problem has not been discovered yet. If I type in 111111 for example, it would come back as a hit, saying it has an "intermittent power failure" problem. I have spent about 4 hours messing with access, I used it a while back in office 03, however I have never did anything like that, and to make things further complicated we now only have office 07. Does anyone have a template which is similar (I can modify the values) or know how to assist me to be able to create a database like this?

View 1 Replies View Related

How To Search From All Tables In A Database

Oct 11, 2006

Do i have to list them manually eg "SELECT * FROM 1, 2, 3, 4" or is there another way to search them all.

View 5 Replies View Related

Database Query Search

Apr 22, 2007

Hi;
i designed a database
it is controlling the stock and the test results
but there is a problem when i was using the query
because i entered the table data like
"1111 Microsoft Access"
"2222 Microsoft Excel"
when i executed the query i must enter the exact data like "1111 Microsoft Access" but i wanna only use "1111" for executing the query.

Please help me how can i do that?

Thanks for your Help.

View 6 Replies View Related

Search Query In Database

Jul 20, 2005

im trying to get a site working

www.peck-ed.com/search.asp

but im having some problems with the search on asp. the problem as u can see is the fact it has to be the exact item for the search to work, atm the query is

Select * From PLIST Where PLIST.DESC Like "::ID::"

but i need it to work on single words from teh database rather then the whole thing, anyone got any ideas if i can change that so it will pick up on words rather then the whole item?

Amiga'Ferrari Formula One'

use that if you need to find an example of data, its got all the stock records of the shop dating back for years :P

View 4 Replies View Related

How To Search Entire Database

Aug 8, 2014

Is there a way to search an entire database? Almost like a Google search where a user could put in a few key words and it would retrieve all records no matter which fields the key words appeared in?

View 2 Replies View Related

Database Access Search

May 1, 2014

I need to make a search form where i can search from the database access and generate the report in Excel.for example in a form there are 4 fields, I can search by field by field and press submit button then if there is no record it will pop up that no record found if there is a record so it will generate an excel sheet with formatting.

View 8 Replies View Related

Database Won't Synchronise - Search Key Not Found

Jan 7, 2008

Hi

I have a database which I have replicated and I am trying to synchronise the replicated copy with the design master - both at the moment are stored on the same network share.

Whenever I try to sync from the replicated copy I get an error message saying the "search key was not found" and the database won't sync.

What should I be looking for to correct this?

running Access 2003 - Win XP SP2

View 1 Replies View Related

Database Search, Email Results ???

Oct 14, 2004

***Updated*** Search/Email Results has been solved....Working out some bugs and trying to add a Print Address Labels option to the search. The post at Date Nov. 5, 11:4x is the new post with updated info. Thanks! ***Updated***


I have read a ton in the last hour or so on this subject and gained a little insite, but since I have no Access programing experience I am still pretty lost. However, I have programing experience in other areas, so if it requires some macros, I shouldn't have too much trouble. /crossfingers

I have put together a database for the business I work for that contains around 3,000 contacts.
I am trying to figure out a way to do a search that will search out specific contacts and email them a newsletter. Their email address is included in their contact information. So I assume I need a way to search for a specific criteria, grab their email address, and then email them with either an attached document, a prior written email, or have included the newsletter in the body of the code to add into the created email.

Any thoughts?
Thanks so much for your time,
Nick

View 14 Replies View Related

Search Database And Print Report

Nov 11, 2004

I've created a Report called "Labels". I would like to use a program mwalts gave
me that searches my database and then sends out a mass email. I would like to take
this program and instead of it searching the database and sending an email, have it search
my database and print out the results in a report.

Can someone tell me the command lines I would need to add to the following program to do this?
I would like to just take out the email parts of the code and just substitute them with the print
label parts.

Thanks.

Code:'Designed by M. Walts'Important information! this code requires a reference to the Microsoft DAO object libraryOption Compare DatabaseOption ExplicitPrivate Sub cmdEmail_Click()'will hold the dynamic SQL queryDim strSQL As String'will hold the WHERE clause portion of our SQL queryDim strWHERE As String'will hold all the recipients of this messageDim strRecipients As String'the recordset we will use to get the emails of the records that match our criteriaDim rst As DAO.Recordset'if there is input in the search criteria, then we will run the query and send the e-mailIf txtSearch <> "" Then'if you have more buttons, just add mosr cases (the value of the radio button'= the Case number, so Value of the State radio button is 1, etc.)Select Case opgSearch.ValueCase 1strWHERE = "WHERE State = '" & txtSearch & "'"Case 2strWHERE = "WHERE City = '" & txtSearch & "'"Case 3strWHERE = "WHERE Denom = '" & txtSearch & "'"Case 4strWHERE = "WHERE Conference = '" & txtSearch & "'"Case 5strWHERE = "WHERE Donor = '" & txtSearch & "'"Case 6strWHERE = "WHERE MailingList = '" & txtSearch & "'"Case 7strWHERE = "WHERE YouthPastor = '" & txtSearch & "'"Case 8strWHERE = "WHERE PrayerSupport = '" & txtSearch & "'"Case 9strWHERE = "WHERE PACTTrainer = '" & txtSearch & "'"Case 10strWHERE = "WHERE PACTPartner = '" & txtSearch & "'"End SelectstrSQL = "SELECT EMail FROM tblUser " & strWHERE'run the query and get the results into the recordsetSet rst = CurrentDb.OpenRecordset(strSQL)'Loop through the recordset and add all the EMailsDo While Not rst.EOFstrRecipients = strRecipients & ";" & rst!EMailrst.MoveNextLoop'remove the first ; from the strRecipientsstrRecipients = Right(strRecipients, Len(strRecipients) - 1)MsgBox strRecipientsDoCmd.SendObject , , , , , strRecipients, txtSubject, txtBody, Falserst.CloseSet rst = NothingEnd IfEnd Sub'stops a ' entered in the field from breaking the queryPrivate Function SQLSafe(safeMe As String) As StringSQLSafe = Replace(safeMe, "'", "''")End Function

View 10 Replies View Related

Forms :: How To Search ALL Of The NAME Fields In Database

Jul 21, 2013

Access 2010. I need to be able to search ALL of the NAME fields in the database.I have reviewed some of the search forms already posted but I do not understand how to apply what was done to my database.

View 3 Replies View Related

Queries :: Search Form In Web Database

Apr 2, 2013

I am creating a database in Access 2010. It is a web database and will be uploaded/used on our Sharepoint site.

I have created a search form, called ContactSearch. It has multiple fields, but the first field, for an example, is FirstName. It then searches the query called ContactSearchQ to display the record.

In the criteria field for the query I have:
Like "*" & [Forms]![ContactSearch]![FirstName] & "*"

It works fine...except when it comes to using it on the web database. I am sure there is a solution for creating a search form on a web database, but I have not found it yet.

View 14 Replies View Related

Search Employees Backup Database?

Dec 16, 2011

Attached i have a Database with 3 Tables.

-Table MA's. is the just a table were you can select if an Analyst is at the office or not. so if the check box is selected the analyst is available.

-Table Backups. We have Alias which is a reference code to a supplier the 1 Analyst and then Backup 1 and backup 2

-Table suppliers are just de supplier details.

what i whould need is when in the MA's table an Analyst is not selected a macro or query should search for backup 1 and replace it. when the backup 1 is not available as wel than backup 2 should be put in place.

When no backups are availeble then a message can put in the cell like"No Backup Available'.

This result can be put in a new table named. Decksplit with then the Supplier Alias, Supplier Name, Analyst

View 4 Replies View Related

How To Search Through Multiple Tables That Are Different In One Database

Jul 30, 2014

Im working on a cross comparison database for the three food vendors for my boss. What is the best way to search across the three tables? They all have similar record titles but arent all uniform, and I cant change the records because I have to have the record names the same as the files that are being exported from the vendors websites. What would be the easiest way to search across three similar but not uniform tables in one database? Ive also tried to make three buttons to update the lists after I download the items to have up-to-date prices on the products but am unsure if they are actually working correctly.

View 3 Replies View Related

Saving A Database With Search Bar Criteria

Jul 1, 2014

one of my steps for my access class in college is to save a database in Access 2013 with a search bar criteria - however no matter how I try Access opens up even after I save as with all the objects showing. Is there a way to save so that when I open access it already has the search bar criteria saved?

View 3 Replies View Related

Create A Search Function In Database

Aug 13, 2013

I've been trying to create a search function in my database and a " TmprryQryFrLnkFldsCrtn0123456789 " Query has appeared that I cant alter or change.

View 6 Replies View Related

Search On ID / Datatype Problem (GIS Linked Database)

Dec 7, 2005

Dear All,

I have a property database linked to ArcView 3.1. It has a field that links to the ArcView Database called ID which is unique and set to a data type of double.

I have a further form that can go straight to a record if you know it's ID.
This form works fine so long as the ID field is no more than 5 digits. I have a series of polygons that have six figure ID's - the link to arcview works fine using these six fig ID fields however the form that looks for that particular ID can't cope with the six figure numbers...

My problem is although I could change all the ID's of the records in the Database so that the search on ID worked (ie five figure id) they then wouldn't match with the overlay in ArcView and I would not be able to link through using code without first changing and matching all the codes associated with the polygons (time consuming)

I did try changing the datatype of the ID field to long integer but still have the same problem. Strange that the search works for five figure IDs and not six.

Does anyone know whether this is a data type error or is it some simple oversight.? I can probably work out some way of changing all the ID fields to five figures but would prefer to keep the six figures as they are used in some pre-printed material as refs

Thanks in advance

Mark

View 1 Replies View Related

Creating A Form To Search Field In Database

Nov 6, 2004

I have created a form to search a field in my database by running a query. i can only get it to search for direct matches as I am having no luck getting the "LIKE" Operator to work for me. the format should apparently be, like "A*" , this works but i woud like to replace "A" with a variable from a txt box in my form. which will be a combination of letters and numbers

followed what i think is the right instructions and pasted the appropriate bits in the expression builder to tell it where to look but doesnt work
cant fathom out why its not working, it just produces blank queries

Also in the query design page do i need to do anything with the optional "Total" row dropdown menu?


help much appreciated

View 3 Replies View Related

Can ASP Or ACCESS Create A Database Search Report?

Dec 30, 2005

Hey there, can anyone advise if the following is possible and if so how it might be done?

I have created a site using DWMX04, ASP & ACCESS.

I would like to be able to have some sort of report on what is being searched on the database.

Can this be done in ACCESS or by using ASP?

Any ideas or suggestions would be great.

Mally.

View 3 Replies View Related

Prompt To Search On A Portion Of Database Record

Feb 5, 2007

I am trying to create a Form in which a user is prompted for a road name and that a listing of all values having that road name are displayed. My problem is that Road Name in the database is a combination of the road name and road suffix such as Evergreen Street. I want the operatior to be able to enter just the road name, Evergreen, and get a listing of all Evergreen addresses; Evergreen St., Evergreen Rd., Evergreen Ln., etc. How do I create the prompt so that it ignores the road suffix and searches just on the name?
I should add that I know how to use brackets in a form prompting the user to input a parameter. In a query I can use "*" to find all those records having a portion of the desired data. For example in my query I can use "Evergreen*"
to find all records where the fisrt portion of the data record is Evergreen.
How can I apply the "*" to a user entry prompt.

View 2 Replies View Related

General :: Search Bar That Scans Entire Database

Nov 4, 2012

I wonder if by any chance it is possible to create a search bar that scans the entire database- or lemme say the fields i assigned to such search bar- that can be put in the switchboard or so.

According to my level of understanding of access, this should be a query.

However, is it possible to make it appear like a search bar that could be placed where I want it; in this case in the switchboard??

Does it require a certain code or something?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved