Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUERY BY FORM 1

Status
Not open for further replies.

Lee24

Programmer
Apr 11, 2001
103
GB
WHAT I NEED IS A FORM WITH 5 OPTIONS ON IT.

THE USER SELECTS WHATEVER THEY WANT

THIS INFORMATION IS THE CRITERIA FOR A QUERY THEY HIT A SEARCH BUTTON AND A REPORT IS DISPLAYED OR AN ERROR MESSAGE COMES UP/



ALL HELP GEATLY APPRECIAYTED
 

Create your options form with a list box. Enter your options values. Add the field to your query as your filter as [forms]![formName]![FieldName].

User selects an option from the list box, clicks search to launch the query, query runs with the list selection as the query filter.

Jim
 
Create 5 buttons, when clicked change the caption of the form. Know you now the option and record source of the form.

Me.Caption = "Missing EPAC'S for Material 9D"
Me.RecordSource = "SELECT * FROM [T Material 9D] WHERE EAC = null"
or

Me.Caption = "Missing EPAC'S for Material 4000"
Me.RecordSource = "SELECT * FROM [T Material 4000] WHERE EAC = null"

We are tring to find the missing EAC'S here
RecordSource is a SQL string To object or not to object
That is the question
Alast poor varible I new you well
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top