Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 December 20th, 2003, 05:25 AM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Search Form

hi,
I have a system for document management. the document table has the following fields:
document ref id: text
document id: number
document department: text
document file: number
document date: date
document type: text
document title text
document keywords:text

I need a form that allow the user to choose the field he want to search in and then type muliple words then the results shown in a subform.

how can i build a search form with feald that display the list of found records

 
Old December 27th, 2003, 06:09 PM
Authorized User
 
Join Date: Oct 2003
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ksa266,
Not sure if I totally understood your question but,
to make a search form you need to have it dynamically create a SQL statement and then attach it to the RecordSource of the form you want the results to be in.
I usually will create an actual query with all the potential fields needed in the search, from there, I'll cut & paste the SQL statement into my code. This gives me the proper syntax very easily(needs modification of course).
I'm not sure how familiar you are with what I just said.
It can get a little tricky.
But, this is a very common way to create a search form to filter records.
Let me know if more help is needed.
Good Luck!



 
Old December 29th, 2003, 06:37 AM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello,
unfortunatly, I am a beginer in VBA. i need more description on that subject.

what i need is one two combo boxes, one text box and a subform
combo boxes are:1. to choose the form from the whole system
2. to choose the field according to the chosen form.

text box: to type the search words (one or more than one word)

subform: to display the result of the founded record.

thanksss.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Form? scandalous Access 8 February 8th, 2007 09:01 AM
Search for a record using a form a_wahab Access 6 September 1st, 2006 12:03 PM
Search Controls on a Form donnie_darko1983 ASP.NET 1.0 and 1.1 Basics 2 April 12th, 2005 05:20 AM
Search in a sub form smang Access 1 January 7th, 2005 08:30 PM
Problem with Search Form DRuiz VB Databases Basics 3 June 6th, 2003 11:16 AM





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