473,472 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Changing all data in a field

DAF LAD
8 New Member
Can anyone help me with this.

I have recently taken over as a Membership Secretary of a local sports club. I have a current database that is very old and needs alot of work. Instead of trying to develop the current database I am re buildin it from scratch.

With membership running yearly, once a year i need to change all of the members status.

I have a field in a table that refers to a persons membership status. This is oly allowed to be Member, Non-Member and Pending.

I need some coding that will (when a command button is clicked) change everyones status from whatever it is to "Non-Member" to save me going down the list changing everyone manually (Takes some time with hundreds of members).

Before anyone asks, I need to keep non-members on the database for some time after there membership ends and also new members are classed as pending due to insurance reasons.

Can anyone help???
Jan 6 '08 #1
1 1241
Megalog
378 Recognized Expert Contributor
This can be done with an Update query. Here's two walkthroughs for them:

http://office.microsoft.com/en-us/ac...765271033.aspx

http://www.databasedev.co.uk/update_query.html

Make a backup copy of your database and test your query on it until you're satisfied with the results.

Then if you need to call it from a command button on a form somewhere, make an OnClick event for the button, and use the following:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdGlobalMembershipReset_Click()
  2.     DoCmd.OpenQuery "ResetQuery"
  3. End Sub
Replace ResetQuery with whatever it's name is.
Jan 6 '08 #2

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

Similar topics

3
by: Alan Payne | last post by:
First of all I am not familiar with SQL so bear with me. I have a field called stock_code, the data in that field, looks like this 000000851. I need to replace only the first two charachters...
1
by: iporter | last post by:
Hi - I am changing a field from type nvarchar to type text, given that I need to store strings longer than 255 characters. To do this I change the data type in SQL Server, then I change the...
13
by: Peter | last post by:
Can anyone tell me how to change the data type of a field in a table created with a make table query? The field is a binary and must be changed to text. alternately does anyone know how to specify...
16
by: StenKoll | last post by:
Help needed in order to create a register of stocks in a company. In accordance with local laws I need to give each individual share a number. I have accomplished this by establishing three tables...
10
by: Marizel | last post by:
I'm not sure there's an easy solution to this, but thought I'd ask. I often find myself with a query which I'd like to reuse, but with a different datasource. These datasources generally have...
2
by: S P Arif Sahari Wibowo | last post by:
Hi! Do you know how to put a form's Access-Visual-Basic-code that will force the form to be inserted, while the user has not type anything in the form, without changing focus, selection, etc.? ...
32
by: deko | last post by:
I have a popup form with a textbox that is bound to a memo field. I've been warned about memo fields so I'm wondering if I should use this code. Is there any risk with changing the form's...
2
by: John | last post by:
Hi Everyone, I have a question about dynamically changing the length of a varchar(n) field, in case the value I'm trying to insert is too big and will give a "truncated" error, but before the...
4
by: Mark | last post by:
Bad header on my first post. Sorry. When I import a file using the Import Spreadsheet Wizard and I get to the Field Options screen where it allows me to choose the fields and the Indexed...
1
by: Brian | last post by:
Hello, I am new to Microsoft access 2007 and I have created a new database. There is a dollar about that I have to change from text to currency format. Also, there is a zip code that 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
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
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.