Solved

get Query From Button Pressing

Posted on 2013-01-15
16
269 Views
Last Modified: 2013-01-15
Hello,
Trying to do the following
When I tyoe in some string in the textbox, and press search, it should show the filtered query results. It not refreshing when I am pressing the button. Please assist
Thank you
R
finalTestPlease.zip
0
Comment
Question by:Rayne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 11
  • 4
16 Comments
 

Author Comment

by:Rayne
ID: 38780173
check form1 Thank you
0
 
LVL 61

Expert Comment

by:mbizup
ID: 38780178
It looks like the out put is correct to me - its showing ALL records that contain your search string in the ship name.

If you want to show DISTINCT results, change your query's SQL view to:

SELECT DISTINCT tblSource.[Ship Name]
FROM tblSource
WHERE (((tblSource.[Ship Name]) Like "*" & [Forms]![Form1]![myShipName] & "*"));

Open in new window


If that doesnt help, please let us know what is wrong with the output and what your expected results are.
0
 

Author Comment

by:Rayne
ID: 38780218
Hello,

Double click on Form1
Entered “Jones”
Clicked “Search” button
Results shows Everything!! All 66 records

I am not sure if that’s filtering correctly by “Jones”


If I enter in Jones, it should pull all the rows that has jones in that field
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38780233
ttest this


open the form Form1 and type a value in the textbox, then click on the button
finalTestPlease.accdb
0
 

Author Comment

by:Rayne
ID: 38780238
you need to zip it and attach...i am getting all wierd values in the browser when I open it
0
 

Author Comment

by:Rayne
ID: 38780243
no need to zip, got it
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38780250
better use this one
finalTestPleaseRev.accdb
0
 

Author Comment

by:Rayne
ID: 38780258
This works Great, Can you explain me the steps, Capricorn. I am touching access after 5 years. Thank you
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 38780261
see the codes in the click event of the button.

what steps you want to know?
0
 

Author Comment

by:Rayne
ID: 38780288
How did you set up the  subFrom “frmSource” – the steps
Thank you
0
 

Author Comment

by:Rayne
ID: 38780292
how does the sbuform looks up values from the main form ? like setting the data
0
 

Author Comment

by:Rayne
ID: 38780294
filtered data
0
 

Author Comment

by:Rayne
ID: 38780305
I see this for it but not sure what means
showIt.png
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 38780330
<How did you set up the  subFrom “frmSource” – the steps >

select the table then Create Form > datasheet
save the form

the filtering is done by the codes in the click event of the button
0
 

Author Comment

by:Rayne
ID: 38780340
Perfection to the Ultimate

Thanks Capricorn :)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question