Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 13th, 2006, 01:55 PM
Authorized User
Join Date: May 2006
Location: Elk Grove, CA, USA.
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?

Reply With Quote
  #2 (permalink)  
Old June 14th, 2006, 01:02 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts


   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?

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 03:00 AM.

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