473,487 Members | 2,622 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to filter a subform from a form

27 New Member
Hello,

I have a question on how can I filter fields from Subform to a form, attached is the database I am working on, also does anybody know the format to use as numeric field in a query, like # for Date? Thank you.
Apr 19 '18 #1
3 1027
twinnyfo
3,653 Recognized Expert Moderator Specialist
Ivon,

Please refer the the guidelines on Asking Good Questions first.

Second, we are typically not going to open a DB that has been freely posted on the forum. Please tell us exactly what it is that you are having problems with, describe what you have tried already (including the troublesome code you are using) and then we can better troubleshoot your problem.

Thanks!
Apr 19 '18 #2
ivonsurf123
27 New Member
I apologize did not know about the zip file.

This is where I need help with: I have a question on how can I filter fields from Subform to a form in a query, also does anybody know the format to use as numeric field in a query, like # for Date? Please help. Thank you.

ID is a numeric field that is in a Subform called subfrm_GCDS_Operations_Positions_Fills_Log_New1,

The main form is this query, Main form is called frm_CDS_Operations_Fills_Log_New

Expand|Select|Wrap|Line Numbers
  1. Me!subfrm_GCDS_Operations_Positions_Fills_Log_New1.Form.RecordSource = "SELECT tbl_GCDS_Operations_Positions_Fills_Log.* " & _
  2. "FROM tbl_GCDS_Operations_Positions_Fills_Log " & _
  3. "WHERE (((tbl_GCDS_Operations_Positions_Fills_Log.[ID])=' " & Me.cboDate.Column(0, Me.cboDate.ListIndex) & "'))" & _
  4. "ORDER BY tbl_GCDS_Operations_Positions_Fills_Log.[ID];"
  5. Me.Requery
  6.  
Apr 19 '18 #3
NeoPa
32,556 Recognized Expert Moderator MVP
Quotes (') and Double-Quotes (") - Where and When to use them may help. It also covers numerics - which actually don't even need delimiters.

*Edit.
I just checked and neither article explains how to include numeric literals in a SQL string. Never mind. They need no delimiters at all so it's fairly simple.
Apr 20 '18 #4

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

Similar topics

2
9769
by: Andante.in.Blue | last post by:
Hi everyone! I was wondering if there is a away to use Access 97's build in filter-by-form function but restrict its effect to just the subform. I have a parent form that shows the major...
0
1613
by: Tony Williams | last post by:
I have a main form based on Table1. The form has a tab control of three pages. Each page has a subform based on a different table ie subform1 based on Table2, subform2 based on Table3 and subform3...
3
2747
by: Tony Williams | last post by:
Sorry to repost but I cannot work this out. Can anyone come up with a suggestion? I have a main form based on Table1. The form has a tab control of three pages. Each page has a subform based on a...
2
4002
by: Lenin Torres | last post by:
Hi everybody I have an Union Query that works fine. I used this query as the RecordSource for a Form. That Form is used as a subform in another form. Everything works fine, except for the "Filter...
3
11935
by: dhowell | last post by:
In reading some of the posts on this group, it appears as though it is not strait forward at all to filter a form, which has subforms, by criteria which are either on subforms or span more than one...
0
967
by: dennishancy | last post by:
I have a form and a subform. One of the fields on the primary form is employee number, whose values are in a combo box. Here are the steps I am taking: - I click on Filter by Form - From...
2
4277
by: David W. Fenton | last post by:
I think at various times we've all encountered this problem: A subform is on a main form. From the code of the main form we refer to some property of/control on the child form thus: ...
2
15125
by: wassimdaccache | last post by:
Hello Working on access 2007. My database file is made on access2003. I have 2 forms. (categories) and (Productlistsearch). The Productlistsearch form contain a subform called "Products...
3
2642
LeighW
by: LeighW | last post by:
Hi all, This one is way to complex for me to work out. Presently I have a search form (frm_Search) which is accessible via the Switchboard. I want to be able to search for records within...
1
848
by: norrisr4 | last post by:
I can get this to work... Me..Form.Filter = " = 4" and I can get this to work Me..Form.Filter = " = Yes" How do I apply them together as one using AND ?
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
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
7181
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
7349
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...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.