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

Trouble with Check Boxes in records...

Hi,

I have a form with a sub-form.
The Main form shows a selected product, and the sub-form shows the
package contents for that product as follows:

Item | Qty | Print (Checkbox)

Basically, when the sub-form loads, I want all the Item lines 'Print'
check boxes CHECKED. The user can then UNSELECT certain package items
dependent on the customers requirements.

(A report can then be printed which only lists the CHECKED lines)

Basically, I need to have all the checkboxes CHECKED on FORM LOAD and
all CHECKED back when the form is closed.

How can this be done ?

Appreciate your help.

David
Nov 12 '05 #1
1 1542
On 6 Apr 2004 08:03:19 -0700, da***@scene-double.co.uk (David) wrote:
Hi,

I have a form with a sub-form.
The Main form shows a selected product, and the sub-form shows the
package contents for that product as follows:

Item | Qty | Print (Checkbox)

Basically, when the sub-form loads, I want all the Item lines 'Print'
check boxes CHECKED. The user can then UNSELECT certain package items
dependent on the customers requirements.

(A report can then be printed which only lists the CHECKED lines)

Basically, I need to have all the checkboxes CHECKED on FORM LOAD and
all CHECKED back when the form is closed.

How can this be done ?

Appreciate your help.

David

Can you not just run an update query on the form's On Open event?
-----------------------------------
Private Sub Form_Open(Cancel As Integer)
Dim strDoPrint As String

strDoPrint = "UPDATE tblPkgContents SET Print = True"
CurrentDb.Execute strDoPrint, DbFailonerror
End Sub
-----------------------------------
And then set them back when the form closes...
-----------------------------------
Private Sub Form_Close()
Dim strDoPrint As String

strDoPrint = "UPDATE tblPkgContents SET Print = False"
CurrentDb.Execute strDoPrint, DbFailonerror
End Sub
-----------------------------------

- Jim
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Adrian Parker | last post by:
I have a PHP generated page which displays X many records. Each record has a checkbox preceding it. The user checks several checkboxes, and hits a delete button. All the corresponding records...
3
by: Mohammed Mazid | last post by:
Hi folks! Can anyone please help me with this? I am developing a Quiz program but I am stuck with "multiple answers". Basically I need some sort of code that would select multiple answers...
6
by: Ian Davies | last post by:
Hello all I have the following PHP script to place records from my MySql db into a table. However I now wish users to beable to select the multiple records from the table and on clicking a button...
1
by: David | last post by:
Hi, I have a form with a sub-form. The Main form shows a selected product, and the sub-form shows the package contents for that product as follows: Item | Qty | Print (Checkbox) ...
2
by: cpptutor2000 | last post by:
Could some PHP guru please help me? I have very standard PHP - MySQL application that reads in some data from a table and for each row, puts a check box at the start of the row. Now the check boxes...
7
by: sesling | last post by:
Currently I am using 3 text boxes (status1, status2, status3) on a form and passing the values to a query. The operator will enter one of three statuses (Open, Closed, Pending) in one or more text...
7
by: PANGAWD | last post by:
Hi!!! I´m used to search your forum all the time if I have any problem in Java, C, etc,etc... and I always found an answer, but this time I can´t... I know that this must be a simple answer,...
1
by: Euge | last post by:
Hi, I really hope someone will be able to help me with this one as I am sure im just missing something simple. I have an unbound form which has 20 yes/no unbound check boxes. The purpose of...
5
by: dillneus | last post by:
Hello, I am quite begginer in MS Access and I have a problem with forming search menu. I used help from http://allenbrowne.com/ser-62.html but I have still some problems. I have check boxes for...
5
by: Andrew Meador | last post by:
I have a form (Change Card List by Status) with a check box (cboNOT) and a list box (lstStatus). There is an Open Report button that opens a report (Report - Change Card List) which uses a query...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

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.