473,404 Members | 2,114 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,404 software developers and data experts.

Option Group not working in Continouse form

Hello everyone,

I need help from all of you. I am currently working on sub form in master form. The sub form is continuous form having 1000 records from Table. I want these records to filter by using option value.

Option 1 is intended to show all records in form
Option 2 is intended to just filter Safety Boot
Option 3 is intended to just filter Safety Glass in Continuous form.

This is the code i am using and it works to see all the records but the second one does not have any affect at all. My Code is Here:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Frame4_AfterUpdate()
  2. Dim Mysql As String
  3. Select Case Me.Frame4.Value
  4. Case 1
  5. If Me.Frame4 = 1 Then
  6. Mysql = "Select * From PPERecordsT Where Frame4 =" & Frame4
  7. End If
  8.  
  9. Case 2
  10. if Me.Frame4 = 2 Then
  11. Mysql = "Select * From PPERecordsT Where TypeOfPPE = 2 Order By PPEID"
  12. End if
  13. End Select
  14. Forms!EmployeePPERecordsFF!ListSubF.Form.RecordSource = Mysql
End Sub

Thank you,
Jun 13 '13 #1
1 1672
zmbd
5,501 Expert Mod 4TB
Looks like your post was buried under a fairly heavy traffic day - sorry, we do try our best !)

Please take a look at the following articles from our Insights area, you may very well find other information in this are of great help with your project, I'm fairly certain these will point you in the right direction.

Form Filter and Cascasde
From the Bytes > Sitemap > Microsoft Access / VBA Insights
42.Cascaded Form Filtering
156.Cascading Combo/List Boxes
168.Example Filtering on a Form.

45.How to select Records in an Access Subform from a Combo Box

164.Referring to Items on a Sub-Form
Jul 1 '13 #2

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

Similar topics

19
by: What-a-Tool | last post by:
I have a school project (ASP) in which I have to call three different ASP pages from three different and identical (except for the form "action", obviously) HTM pages. This I have no problem with....
1
by: Gazchurchend | last post by:
I get straight to the point... I need to select an item in an option group when a form loads. Its a PHP form which will have a value sent in when the form loads. This value is assigned to a...
2
by: Chuck Insight | last post by:
Hi All, The table underlying this form has three yes/no fields that refuse to work as selections within my option group. How can I make this happen? Thanks very much, Chuck
1
by: Moe | last post by:
Hi, this my first post to this group. I am trying to add a option group of ture/false and all. This is on a form, that the results are displayed in a subform. When the user select a record from...
1
by: brino | last post by:
hi all ! i have created an option group on a form. when i click the buttons it returns a value to a field. however it will only return a number but i want it to place certain text in the field...
2
by: weston | last post by:
I have a form that has multiple option groups on it. When I created the form I copied the option groups and then changed the data source for them. But there now doesn't seem to be a caption for any...
2
by: jarekz | last post by:
Hello friends. This is my first post here. Please forgive me any mistakes. Could you help me solve the problem that I have in MS Access 2003? I downloaded this template from Microsoft:...
4
by: JHite | last post by:
I am using Access 2003 on Windows XP. This is a simple database that contains “tblStaffers” containing names of the office staffers, “tblProjects” containing names of the office projects, and...
1
tuxalot
by: tuxalot | last post by:
I've copied the option group from my form, and pasted it into the report which seems to work fine. Now, I wish to total the option items in the report. So I have a query that grabs records within a...
8
by: Dan2kx | last post by:
Hello, Is it possible to create an option group/frame that reacts to data in a table? So that as things are added to said table the option group (on a form) would automatically expand. Is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.