473,378 Members | 1,405 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,378 software developers and data experts.

continuous sub form with independant checkboxs

3
I have a form with a check box and a sub form that loads with the on load event when the sub form loads it checks to see if there is any records unchecked and returns the unchecked records but the sub form shows all records (How do I get just the unchecked to show ??)

Email address removed per forum rules
Aug 23 '09 #1
3 1579
Stewart Ross
2,545 Expert Mod 2GB
Without much more information from you (for example listing the fields in your tables and their relationships) it is hard to advise you.

Generally, you could either base your subform on a query in which you have a WHERE clause restricting the records to those where the field representing your checkbox has a value of TRUE, or you can apply a filter to the subform's recordsource to the same effect as part of the On Load event processing.

Give us a bit more detail about the relationships and fields involved and I'm sure we can be of more assistance in our replies.

Welcome to Bytes!

-Stewart
Aug 25 '09 #2
kccced
3
(This is my code for the on load event for the switch board)
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  
  3. 'On Load of the switchboard check Date table for any overdue Dates
  4.  
  5. Dim intStore As Integer
  6.  
  7. 'Count of PM Schedule that are past the Expected DueDate
  8. intStore = DCount("[DueDate]", "[qrytblDate]", "[DueDate] <=Now() AND [Complete] =0")
  9.  
  10. 'If count of uncomplete jobs is zero display switchboard
  11. 'Else display message box detailing amount of jobs
  12. 'and give the user the option as to whether to view these or not.
  13.     If intStore = 0 Then
  14.             Exit Sub
  15.                 Else
  16.                     If MsgBox("There are " & intStore & " Inspections Due " & _
  17.                     vbCrLf & vbCrLf & "Would you like to see these now?", _
  18.                     vbYesNo, "You Have Inspections Due...") = vbYes Then
  19.                     DoCmd.Minimize
  20.                     DoCmd.OpenForm "frmReminders", acNormal
  21.                 Else
  22.             Exit Sub
  23.         End If
  24.     End If
  25. End Sub
(this is my sub form fields)


status, actual finish, workorder#, tech ID, complete (the complete field is the check box)
Aug 29 '09 #3
NeoPa
32,556 Expert Mod 16PB
I think you need to understand that unbound controls in continuous forms do not persist (Why Values in Unbound Form Controls do not Persist).

If your problem is something else, then for goodness sake tell us what your problem is. We're not mind-readers, nor do we want to spend ten minutes trying to guess what you mean, so that you don't have to take 5 asking your question properly.
Aug 29 '09 #4

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

Similar topics

3
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? ...
3
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where...
3
by: Mark | last post by:
Hi there, I have a subform, set as a continuous form. When a user selects a particular record in that subform, how can I make that particular record stand out (color or font change, size, etc) from...
3
by: David | last post by:
Hi, I need a button shown for each record (cont. form) with specific captions on each. I have a notes form for each record. When a user presses the button they can read the notes. I want to...
3
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
11
by: Doug Bell | last post by:
Hi, I am trying to create form that displays data like an Access continuous dataform rather than using a data grid. I am thinking that I can achieve this by creating a row of text boxes, one...
2
by: Steve | last post by:
I have a continuous form showing Product Code and Product Name. Product Code is five digits and is sequential. I have a textbox in the form header. What is the code to scroll the continuous form so...
8
by: Steffen Beck | last post by:
Hi NG I need some help with a problem on my forms. If I have 2 related tables, for instance companies and employees, and want to display all companies on a continuous form with their...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.