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

Select Only 10 Columns Going Back

106 100+
I need to create a sql statement in MS Access from only the last 12 columns a table that has has dates (the last days of the month) as the names of the columns. In actuality, each column is part of table that is sent to my office monthly. I only use one particular column and discard the rest. The columns in the table then looks like this:
Expand|Select|Wrap|Line Numbers
  1. 2_29_2008 || 1_31_2007 || 12_31_2007  11_30_2007 10_31_2007 ...etc.....1_31_2007
I need to be able to select any month dynamically and select the last 12 months only.

Another idea is to use the whole tables but I the requirement is that the last 12 months must be gathered. What it basically shows is the number of errors made by a person, so the previous months represent previous performance.

I am very desperate, any help is greatly appreciated!

Richard
Mar 12 '08
101 6752
Rickster66
106 100+
I'm sorry Richard. I put aside some time today to have a look at this and I'm quite unclear on :
  1. Exactly what you want (exact is important as vague is nowhere in these situations).
  2. Exactly what data I have at my disposal to start with.
I'm sure (I expect anyway) that this information is hidden in here somewhere but with 100 posts now in this thread it's a big struggle trying to dig it all up.

What I suggest you do is start a new thread and post in here when done. I will add in any links to enable switching between the two when I get the trigger of your posting in here.

Your new thread must include, as clearly (and especially accurately) as possible, the data that I will be working with, as well as a clear indication of what is required as output.

Meta-data (info about the layout / structure) for the recordsets (tables) is a requirement and must be clear and accurate. This will work much better if you can post it in the same way as I use in my example. Click on the Reply button and you will have access to all the codes I've used.
Expand|Select|Wrap|Line Numbers
  1. Table Name=[tblStudent]
  2. Field; Type; IndexInfo
  3. StudentID; AutoNumber; PK
  4. Family; String; FK
  5. Name; String
  6. University; String; FK
  7. Mark; Numeric
  8. LastAttendance; Date/Time
Remember too that getting this right first post will save all sorts of complications with the work and avoid having to search around every time I have a question I need answered (from the existing posts). All reference material in a single place makes life a great deal easier.
No worries, thank you for coming back. I am sorry I could not get back to you on Friday - I will start a new thread now.
Apr 28 '08 #101
NeoPa
32,556 Expert Mod 16PB
New thread (Select Only 10 Columns Going Back (Calculations)) created.
May 1 '08 #102

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

Similar topics

132
by: Kevin | last post by:
I don't know if I should even start this topic but here goes. I'm an ex vb6 developer, now developing in C#. The reason why I started developing in C# is because the company that I worked for at...
9
by: Bazza Formez | last post by:
Hi there, For some reason, when I edit row in my datagrid, some columns have (an unwanted) back color of yellow, while others correctly display with white back color. I can see no setting in...
2
by: Terry Olsen | last post by:
I've got my datgrid loaded (finally). I can select rows & delete them. But I can't select columns to delete them. When I click on a column header, all that happens is the grid is resorted by that...
2
by: monomaniac21 | last post by:
hi all im trying to write a pdf document which contains two columns of data. when the column on the left crosses over to the next page i need to be able to go back afterwards to the previous...
0
by: hime | last post by:
Hello I have a data entry web App. form. the login page for this form depends on checking whether the user name and password exists in the data base or not only; which means that I didn't use...
4
by: toglez | last post by:
Hi all! I use PyQt4 and Python to create a program to display numbers from a file in a QTable Widget, select various columns from the table and then display the selected columns in a new table. ...
28
by: Rickster66 | last post by:
This thread is similar to the thread (Select only 10 columns going back) that I posted regarding the dynamic selection of data going back one month at a time for 12 months. Here is the qiote fron...
22
by: Rickster66 | last post by:
As Instructed this is a new thread regarding my original post: "Select Only 10 Columns Going Back" I'm sorry for the late response. I've been gathering up information and carefully with as much...
3
by: adarshyam | last post by:
friends, i have a problem in going back to previous page in my application.. since i want that to happen in the if else statement i cannot incorporate JS. please help me .. i am trying this...
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
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...
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...

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.