473,408 Members | 2,032 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,408 software developers and data experts.

Collumn select?

Hi there,

I am new tot Access. Maybe this has been discussed earlier, sorry for
that ;-)

I want to show 4 columns in a query. Last month, Current Month, Next
Month en the month after that. These columns come from a table
containing al 12 months.

Is it possible to change
SELECT [Planning]![apr]
FROM [Planning]

into

SELECT [Planning]![Month(Date()+1)]
FROM [Planning]
?

What is the used syntax if this is possible?

Thanks!

Nico
Nov 13 '05 #1
1 1250
It may be too late to change your structure, but having a table/field for
each month is not a good data design.
A better approach is just to record dates (in a related 1-Many table), then
filter/sort records on the value of those dates. The DatePart function will
get the day/month/year component from any date/time field.

-Ed

"Nico" <ni*********@gmail.com> wrote in message
news:7b*************************@posting.google.co m...
Hi there,

I am new tot Access. Maybe this has been discussed earlier, sorry for
that ;-)

I want to show 4 columns in a query. Last month, Current Month, Next
Month en the month after that. These columns come from a table
containing al 12 months.

Is it possible to change
SELECT [Planning]![apr]
FROM [Planning]

into

SELECT [Planning]![Month(Date()+1)]
FROM [Planning]
?

What is the used syntax if this is possible?

Thanks!

Nico

Nov 13 '05 #2

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

Similar topics

1
by: JT | last post by:
I have an input form for which I've created a "matrix" for user input. Basically, the user chooses a radio button and then through javascript, a select box is displayed to define a value for that...
10
by: serge | last post by:
Using "SELECT * " is a bad practice even when using a VIEW instead of a table? I have some stored procedures that are identical with the difference of one statement in the WHERE clause. If I...
1
by: monomaniac21 | last post by:
Hi all Can anyone tell me how you can query mysql for all unique entries into a particular table collumn. Ive checked the manual but had no luck! Kind regards marc
1
by: serena.delossantos | last post by:
Trying to insert into a history table. Some columns will come from parameters sent to the store procedure. Other columns will be filled with a separate select statement. I've tried storing the...
4
by: monomaniac21 | last post by:
hi! is it possible to do the aforementioned query - selecting only distinct in 1 col but retrieving all other cols at the same time. regards marc
4
by: monomaniac21 | last post by:
how can i take every field from a table (where there are many) and without referencing by name (using a loop) echo there name in a td followed by the contents? i think the foreach statement is what...
2
by: mcyi2mr3 | last post by:
hi all ive been looking on the mysql site but i cant find the syntax to set a collumn in an existing table to be unique. could someone please give an example of how to do this. i believe it...
8
by: 1987dan | last post by:
I have made a collumn 7 rows deep where i click an arrow at the top of the column and then a red counter appears in the bottom cell of the collumn. I wish to make this collumn like a connect 4...
6
by: Apaxe | last post by:
In the database i have a table with this information: key_id =1 key_desc =43+34+22+12 I want sum the values in key_desc. Something like: SELECT key_desc FROM table But the result of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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.