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

Continuous Form with independent CheckBox for each record

6
I have problem creating Access (Continuous) Form with indepenent CheckBox for each record.
The user should be able to select records that will be processed by VBA based on ChceckBox value.
When I use Table as a source then there's no problem. I have field of Yes/No values, and I'm able to select each record inependently.
But when I want to use Query result as a source then it gets hard to get it working (probably it is not possible, but I need to confirm that).
I just need to populate Form with data of query result (AS Simple As Possible), to show data in a user friendly manner and be able to handle selected records with VBA script.

Example:

Let say that the user wants to do some operation on customers whose total order value is over some amount of money. Query result that is viewed in the Form and helps make decission is written bellow

Expand|Select|Wrap|Line Numbers
  1. select orders.cust_id, sum(orders.value), 0 as DoSomething
  2. from orders
  3. group by orders.id 
0 is default value for the DoSomething field that should be rendered in a Continuous Form as CheckBox

Now I should be able in the form select those field that will be processed.
In VBA function I run across the Recordset of Form to obtain cust_id of selected orders and do with this value whatever I want to do.


I don't want to use "Select Into" in order to save results to table that will serve as source for what will be displayed in the Form.

Any comments will be apreciated.
Aug 13 '09 #1
7 26055
ChipR
1,287 Expert 1GB
Your DoSomething field can not be editable because it doesn't exist in a table, and there's no record to edit.
Aug 13 '09 #2
ggfota
6
I do not intend to edit any source data.

I need to render CheckBox in the Form for each record of data displayed.
Let say that I want give a user a Check List interface (some information data + checkbox field), and command button that will fire any VBA script that will process checked item on the list.

If I add CheckBox component in Design View then selecting one will select also the rest. That's not what I expect.

Imagine a Form made in HTML. Form is rendered result of query that is viewed to the user. I can add independent check box to each row of data and determine (either by Java Script or by prcessing POST data on the server side) which cust_id have been checked.
Aug 13 '09 #3
ChipR
1,287 Expert 1GB
A checkbox in a continuous form must be bound to a table. Changing any one unbound or calculated control will change all of them. Your form has to have somewhere to save the Value of the checkbox for each record.
Aug 13 '09 #4
ggfota
6
So the conclusion is that there's no way around except do some mess by saving temporary query result to the table and use this table as data source for the Form.
Aug 13 '09 #5
ChipR
1,287 Expert 1GB
The check box on a continuous form solution is going to be messy, yes. Have you considered other options? If you use a main form with a list box, and a continuous subform, you could click a button in the record to add it to the list box of things to be processed.
Aug 13 '09 #6
ggfota
6
There no simple solution to create one (sometimes reusable) component i MS Access. Patterns and solutions (like MVC) existing/available in other programming languages proove that MS Access is rather simple tool.

I had to stay with table that holds form's data and keep in mind that if I copy the form I should also copy the table.
Aug 17 '09 #7
@dbhoppe
I have been able to use your post and get all of it to work, except I am stuck on the OnClick code. Did you write a code to change the checkbox value with each click in the txtbox? I was able to use the value "X" to change the value, but with the txtbox being locked that does not work for this situation. I would appreciate any help you can offer.
Jan 1 '15 #8

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

Similar topics

2
by: Cro | last post by:
Dear Access Developers, I am developing a form with 'default view' set to "continuous forms". I am suffering with a problem I can't yet see a solution too. Each record has many fields. Two...
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...
2
by: Karl Roes | last post by:
Thanks Turtle, but ... what for ? Could you please explain a little more. I am wanting to know the status of all check boxes in a continuous form ie. all are 'ticked'. MacDermott wrote - ...
5
by: Armando | last post by:
I recently saw the tail end of a "Continuous forms" discussion, but not enough was available to see if this will be a PITA repeat question. Sorry if it is. On a form with its Default View...
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. ...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
4
by: neoman007 | last post by:
I have a form (frm_approval) which is based on a query (qry_unapproved). The query queries a table (tbl_total) for records that are unapproved and shows these records in (frm_approval) so the...
1
by: Thuveshen | last post by:
Hi There I am new to VB scripting in MS Access. I currently have a form with a subform embedded in it. I run a query based on search criteria which works fine. Within the Subform there is a...
1
by: rpboll | last post by:
I am looking for the best way to accomplish the following continuous forms concept. There are Five Groups: A, B, C, D, E Each group has eight Members: a, b, c, d, e, f, g, h Each...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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
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
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
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...

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.