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

update all currently showing records

13
hi all,

how about this?


I want to allow users to click a check box on a form to 'flag for testing'
thats fine - works great

but
what if there is 100 records and the user wants to flag ALL of them for testing?

how can i have a checkbox that basically 'selects all'

however, the 'all' must only be the currently returned records, there could be lots of filters currently active...

how do i know what the currently showing records are?


thanks for any info.!
Sep 1 '07 #1
1 1312
ADezii
8,834 Expert 8TB
hi all,

how about this?


I want to allow users to click a check box on a form to 'flag for testing'
thats fine - works great

but
what if there is 100 records and the user wants to flag ALL of them for testing?

how can i have a checkbox that basically 'selects all'

however, the 'all' must only be the currently returned records, there could be lots of filters currently active...

how do i know what the currently showing records are?


thanks for any info.!
Here is one system that will work:
  1. Create your Filter(s).
  2. Execute an Update Query that duplicates your Filter(s).
  3. Recreate the Filter(s).
    Expand|Select|Wrap|Line Numbers
    1. Dim MySQL
    2.  
    3. 'Create your Filter
    4. Me.Filter = "[Rank]= 'FF'"
    5. Me.FilterOn = True
    6.  
    7. 'Run an Update Query that duplicates the Filter
    8. DoCmd.SetWarnings False
    9.   MySQL = "UPDATE tblEmployee Set [Checked]=True WHERE [Rank]='" & "FF" & "'"
    10.   DoCmd.RunSQL MySQL
    11. DoCmd.SetWarnings True
    12.  
    13. 'Re-create your Filter
    14. Me.Filter = "[Rank]= 'FF'"
    15. Me.FilterOn = True
Sep 1 '07 #2

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

Similar topics

14
by: serge | last post by:
I have a scenario where two tables are in a One-to-Many relationship and I need to move the data from the Many table to the One table so that it becomes a One-to-One relationship. I need to...
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
5
by: Mike Thomas | last post by:
In Access 2000, we are having a problem with some updates apparently not succeeding. I am not sure whether the records to be updated are locked, somebody is overwritng the changes, or what, but...
7
by: PC Datasheet | last post by:
Looking for suggestions ---- A database was designed for a national automobile inspection program. In it's simplest form, the database has two tables: TblOwner OwnerID <Year/Make/Model owned...
11
by: Siv | last post by:
Hi, I seem to be having a problem with a DataAdapter against an Access database. My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable. I then proceed to update a list to...
8
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In...
0
by: Access Programming only with macros, no code | last post by:
ERROR MESSAGE: Could not update; currently locked by another session on this machine. BACKGROUND I have the following objects: Table1 - HO (which has about 51,000+ records) Table2 -...
3
by: natural | last post by:
Good Day, I was currently browsing on ways to update records within a form to a subform. and noted the following article by Alan Brown on how to make use of the With Me..Form.RecordsetClone...
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
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.