473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Filter a form using a query

Hello. I have form to type the projects info. I want to add a button to apply a filter that can show only the records that correspond to a specific query (unfinished_projects). I tried the Applyfilter macro using WHERE id_project=[unfinished_projects]![id_project] but it doesn't work (it does not recognise [unfinished_projects]![id_project] as a value).
I also tried to use [unfinished_projects] as the Filter Name and it does not work either. Any suggestions?
Thank you.
Oct 14 '15 #1
2 834
New to access, but I just ran into this problem myself. Make sure that the format of the field you are referencing is the same format as the field you want to filter.

Not sure if this is your problem, but good luck.
Oct 14 '15 #2
hvsummer
215 128KB
@Ferarbe:
first, to refer to a form, I think it should be
Form![Unfinished_projects]![ID_Project]

you should use VBA to do this flexible as you wish.

I suggest in VBA, using Me.control.rowsource = "string SQL here" + Where clause
Oct 15 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Phil Powell | last post by:
http://www.php.net/array_filter I went there at first for my information on filtering mySQL query results using PHP, to no avail. This is more of a Vignette construct (my native environment)...
1
by: Keith | last post by:
A2003, Xp Pro. I've designed a form which contains 6 of combos. Three on the left are set up to select fields from a query, three on the right are set up to select values from the corresponding...
4
by: Keith | last post by:
A2003, XP Pro. I'm in the middle of designing a form to act as a custom filter, like a very basic 'filter by form'. It has two sets of combos, those on the left are to choose the field name(s)...
6
by: sanniep | last post by:
Hello, I've got a form like this: Name: _(free text input)__ Adress: _(free text input)_ City: _(free text input)_ When clicking a Apply Filter button on the form a query is...
1
by: mchlle | last post by:
I need for a form to display certain records based on the user. If current user = user1 or user2 then open frmNotesAll If current user = user 3 then open frmNotes where counselor id = 2 or 6 or...
3
manoj9849967222
by: manoj9849967222 | last post by:
HI All I have two tables One is "master" & the other one is "child". The master Table have filds Productcode -----Number Productname-------Text Child Table
5
by: wassimdaccache | last post by:
Hello sirs; I do have a continuous form on MS access 2003 I would like to filter this form using the content of the field. I am using this code. Dim y, x As String y =...
8
by: hollinshead | last post by:
Hi there i have bit of an issue. i haver this database that is purely used for searching records under certain criteria. This criteria is chosen by the user on a form using list boxes and combo...
1
by: bullfrog83 | last post by:
In the form header I have four unbound comboboxes that I use to filter records in the detail section. You can select a value in one, two, three or all four of the comboboxes and it doesn't matter...
11
by: eneyardi | last post by:
I have a query name ICISquery, table field names are ARE of Employee, Date of ARE, Item Description and Remarks. The table field ARE of Employee is a name of employee. ICISquery has a 10000...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.