473,791 Members | 3,216 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with... er... not sure how to describe this

Hello all

I'm not sure how to word this, which is one reason why I couldn't find
anything on Google to help me, so please bear with me as I try to
explain myself...

I am trying to create a database for a youth club, with relevant info on
members, non members, who attended what activity when etc etc. The
thing I am trying to do is, each youngster will be in a particular year
group in school (i.e. first year, second year etc), I have a simple
table with member records (the basics: name, date of birth, address,
next of kin etc), and one table for year groups, and each member will be
linked to the year group they belong to.

The thing I am trying to figure out how to do is, when the next year
comes, what is the best way for me to go in and change the year group
collectively? Like for instance, how do I change all the first year
kids to second year? And second to third? And so on... The only way I
could think of is going into each record and changing manually, but not
exactly ideal when we're working with over 50 kids per year group and
potentially into 4 figures for the whole club...

Does anyone have any suggestions or solutions? I tried to look for
school database examples on google but instead I get a bunch of "how to
do databases" from school websites lol

I'm guessing there is some kind of macro or programming that can be used
to do this, but I just don't know what that is, can someone please point
me in the right direction?!

Thanks so much in advance for the help and time

Kind regards
Will
Nov 13 '05 #1
4 1221
can't you calculate the year group they belong to? What's the rule for
that? Is it based on the child's age, or on the year the child joined?
Then you can use DateDiff() to figure it out on the fly - and you
won't ever have to update the stuff manually. then when the next year
comes, your query will rerun and will automatically update itself. Or
you could make the value static (may be necessary) and use an update
query to change it.

Nov 13 '05 #2
adm
the short answer, as pietlin explains, is to use an update query.
Access lets you create these using Query Wizard, etc. To do it with a
simple SQL statement, it would be something like:

UPDATE tblStudents SET YearGroup = "Second" WHERE YearGroup = "First"

Create a different update query for each year group. Make sure you are
careful about the order you run them in...otherwise you'll put all the
first years in with the 2nd years, and then you won't be able to
distinguish them.

But as pietlin explained, you should probably reconsider this way of
tracking things and base it on something calculable(sp?) instead.

Nov 13 '05 #3
"adm" <ad*****@yahoo. com> wrote in
news:11******** **************@ f14g2000cwb.goo glegroups.com:
the short answer, as pietlin explains, is to use an update
query. Access lets you create these using Query Wizard, etc.
To do it with a simple SQL statement, it would be something
like:

UPDATE tblStudents SET YearGroup = "Second" WHERE YearGroup =
"First"

Create a different update query for each year group. Make sure
you are careful about the order you run them in...otherwise
you'll put all the first years in with the 2nd years, and then
you won't be able to distinguish them.

But as pietlin explained, you should probably reconsider this
way of tracking things and base it on something
calculable(sp?) instead.

Or modify the table slightly, change the yeargroup to a number.
Then at the change of year, run an update query that adds one to
every row. An enhancement would be to add a lookup table with two
columns, the number and its description.

--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #4
Bob Quintal wrote:
"adm" <ad*****@yahoo. com> wrote in
news:11******** **************@ f14g2000cwb.goo glegroups.com:

the short answer, as pietlin explains, is to use an update
query. Access lets you create these using Query Wizard, etc.
To do it with a simple SQL statement, it would be something
like:

UPDATE tblStudents SET YearGroup = "Second" WHERE YearGroup =
"First"

Create a different update query for each year group. Make sure
you are careful about the order you run them in...otherwise
you'll put all the first years in with the 2nd years, and then
you won't be able to distinguish them.

But as pietlin explained, you should probably reconsider this
way of tracking things and base it on something
calculable(sp ?) instead.


Or modify the table slightly, change the yeargroup to a number.
Then at the change of year, run an update query that adds one to
every row. An enhancement would be to add a lookup table with two
columns, the number and its description.


Thanks to everyone for the responses (for some reason btopenworld didn't
pick up pietlan's reply, had to go to Google to find it!), really
appreciate it!

The problem with the calculation method is that you could have different
aged kids belonging to the same year group, so it's hard to define them
that way, but it looks like an Update query is the way to go... at the
moment, I do have a lookup table for the year groups, I just wasn't sure
how to do the actual updating from one year group to another
collectively, but I'm gonna try the Update query one... I guess it's
just making it so that it Updates in the right order!

Thanks once more for everyone's time and help, most appreciated.

Cheers!
Will
Nov 13 '05 #5

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

Similar topics

0
567
by: Graham Mattingley | last post by:
Hi Group, I have three tables for a mailing list app I am trying to right... I want to try and avoid running 3 selects inside eachother.. The LIST table is a list of people what have registered for news letters, the newsletters table is a list of newsletter available, and the news list joins them up. I am trying to display the newsletters.newsletter_name for every list.id line.. So I would like to be able to say list.first_name,...
5
2070
by: Sparrow | last post by:
I have created a table with the following columns... Date(datetime),Actual (Int),Planned (Int) I need to insert weekending dates starting from 23/04/04 looping thru'for the next 52weeks automatically into the date column. Then in the actual and planned colums, I need to insert a count of some records in the table. I will appreciate help on a SQL query to achieve this!
37
3260
by: Tim Marshall | last post by:
From http://www.mvps.org/access/tencommandments.htm 9th item: Thou shalt not use "SendKeys", "Smart Codes" or "GoTo" (unless the GoTo be part of an OnError process) for these will lead you from the path of righteousness. What about also using it as a means of exiting a procedure?
1
1525
by: Paul | last post by:
Hi, I'm developing a search facility for my web app. In order for the search criteria to be valid the user must (a) enter some text in a text box and check and least one checkbox (of which there are two) and/or (b) select at least one item from a multiple select list box. I've written the javascript to do the client side validation which gets called on the click event of my search button. I'd like to implement server side validation...
2
2319
by: Goober | last post by:
I have the following default.aspx page that works properly. However, what I want to do is to link the graphics within it (that are hard coded now in the default web page) to our corporate website, which has the same graphics rotated on a 30 day basis or so. They have a standard naming convention where I know the 3 graphics are always going to be fa_mmyy.jpg, am_mmyy.jpg, and ax_mmyy.jpg. The HTML follows:
15
2102
by: DavidS | last post by:
Have Visual Studio.NET installed on MS 2000 Professional OS laptop. No issue ever with web development and SQL connections. Purchased new laptop with XP Professional SP2!!!!!!!! & Visual Studio.NET installed. Nothing but headaches. Continually getting System.Data.SqlClient.SqlException : Timeout expired message - The timeout period elapsed prior to completion of the operation or the server is not responding. Can anyone help with...
7
1571
by: Brett | last post by:
I'm not sure why I keep getting this error, "Object reference not set to an instance of an object". Private Function somefunction() as string Dim MyCurrentClass As New Class1 Try For i As Integer = 0 To LinkResults.Length - 1 With MyCurrentClass.SqlCmd_Insert_LinkVB .CommandType = System.Data.CommandType.StoredProcedure
4
1671
by: Dave G | last post by:
I've just been informed that an Access 2003 based system in use at one of my customers now needs to send data in the form of an XML file to a webservice. They told me it was simple - but I don't know anything about it and a googling session yesterday made it look very complicated. So can anyone help with this question - I don't need anything fancy and I haven't got the experience to work it all out for myself from first principles (even...
2
234
by: ahmadoubay_20240 | last post by:
The assignment aims at enforcing the encryption and communication techniques. It helps the student in acquiring the necessary knowledge in developing client/server application and in securing data transfer using encryption techniques. Objectives can be summarized as: • Designing and implementing server applications • Designing and implementing client applications • Encrypting and decrypting o Use of DES, RSA o Use of hash...
0
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9517
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10156
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9997
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9030
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5435
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.