Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2006, 01:55 PM
Authorized User
 
Join Date: May 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Search Option

Ok, I am once again at your mercy =)
I have created a form whereas it is basically a main form with which I have created quick views.
I have a table that I has 6 fields
Ticket type, Name, IssueOfficer, startnumber, endnumber, Issuedate
I input and issue tickets based on a range of numbers. I input a ticket range of 100 to 1000 hence the startnumber and endnumber. I then turn around and issue 100 to 500 from the range.
What I am trying to do is create a search option in my main form that consists of type combofield, text field and the search button.
I want to be able to select a type from my type combo field then type in a number say 200 in the text field and once I click the search button it finds the following from the table
Name, IssueOfficer, (ticket range)startnumber, endnumber, Issuedate
Which is the record where that ticket type and number (200) fits within the ticket range.
Can anyone help me?


EB
__________________
EB
 
Old June 14th, 2006, 01:02 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi,

   It is easy enough to use the combo wizard to look up values in the table Ticket Type field. Modify the query to show Unique Values = Yes. If this field is a foreign key, just look up to the foreign key table and bypass this table.

   Then add a text box to allow users to type in the start number. Is this going to be a range, or the actual start number? For example, if the user types in 200, do you want them to see ticket 200, or do you want them to see tickets 200 through 299? Or some other range. This is important.

   The button can open your report or form based on a query, and that query can take the value from the combo box in the query criteria, and then you can analyze and pass the value from the text box in your code (check for values, errors, select ranges, or select a single ticket, etc).

Can you provide the information?


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Search button doesn't search Access DB cbones Visual Studio 2008 1 October 27th, 2008 07:36 PM
Create Check Boxes/Option buttons/Option Group hewstone999 Access VBA 1 March 14th, 2008 07:25 AM
New text search doesn't preselect search string planoie Visual Studio 2005 0 July 23rd, 2007 06:47 AM
File Search / Indexing Search with .net 2.0 maulik77 ASP.NET 1.0 and 1.1 Basics 2 March 15th, 2007 12:45 AM
Search Engine for Full-text Search Kala ASP.NET 1.0 and 1.1 Professional 2 August 29th, 2004 02:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.