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

Conceptual problem when

Hi everybody!

Writing this time, I'm really desperate. Basically, I have a
conceptual problem of how to solve a certain "problem" in MS Access
97.

General objective:
In order to categorise certain products, I need to know whether a
specific product has been promoted in a specific week. To find this
out, I have a linked table, which has all promotions for each period
(1-2 months) and an EAN code for each promoted product in it. The
target table (where I want to add the category if it is in the linked
table) has EAN codes as well as a week and year. However, in the
target table, I have to use one column called week and another called
year (no changes are allowed). Therefore, I need to find out whether a
product in the target table is within the time period of the linked
table.

Example:
Linked Table
StartDate | EndDate | EAN
1.12.04 1.2.05 abc
1.4.05 1.6.05 abc
1.4.05 1.6.05 xyz

Target Table
EAN | Week | Year
abc 1 05
xyz 1 05

Objective would be:
EAN | Week | Year | Category
abc 1 05 Promo
xyz 1 05 'not xyz coz not promoted in that period

Explanation:
In the target table, there is the EAN code "abc" in week 1, year 05. I
now want to check, whether this product was pormoted during this week.
When looking at the Linked Table, you can see that this product was
promoted from the end of the year 2004 until February 2005. This means
that it was promoted in the first week of 2005 and therefore, in the
column category, it should say e.g. "Promo".

My Approaches/Ideas:
I've already created a table which translates each date into a
corresponding week number and year. But how can I connect those tables
to solve this problem? I've already tried using a macro, but I failed
because you cannot use the SEEK command when working with linked
tables... is there any SQL statement? E.g. a JOIN?

I would be really grateful for any thoughts or ideas on that.

THANKS TO ALL FOR READING MY "NOVEL"!

Cheers,
Stephan Kuhnert
Nov 13 '05 #1
1 1371
Look at Access Help for explanation of the DatePart, Year, DateSerial, and
DateDiff functions. You'll be able to use them to convert values to a
common unit and cmpare them.
-Ed
"kuhni" <st************@gmx.de> wrote in message
news:88**************************@posting.google.c om...
Hi everybody!

Writing this time, I'm really desperate. Basically, I have a
conceptual problem of how to solve a certain "problem" in MS Access
97.

General objective:
In order to categorise certain products, I need to know whether a
specific product has been promoted in a specific week. To find this
out, I have a linked table, which has all promotions for each period
(1-2 months) and an EAN code for each promoted product in it. The
target table (where I want to add the category if it is in the linked
table) has EAN codes as well as a week and year. However, in the
target table, I have to use one column called week and another called
year (no changes are allowed). Therefore, I need to find out whether a
product in the target table is within the time period of the linked
table.

Example:
Linked Table
StartDate | EndDate | EAN
1.12.04 1.2.05 abc
1.4.05 1.6.05 abc
1.4.05 1.6.05 xyz

Target Table
EAN | Week | Year
abc 1 05
xyz 1 05

Objective would be:
EAN | Week | Year | Category
abc 1 05 Promo
xyz 1 05 'not xyz coz not promoted in that period

Explanation:
In the target table, there is the EAN code "abc" in week 1, year 05. I
now want to check, whether this product was pormoted during this week.
When looking at the Linked Table, you can see that this product was
promoted from the end of the year 2004 until February 2005. This means
that it was promoted in the first week of 2005 and therefore, in the
column category, it should say e.g. "Promo".

My Approaches/Ideas:
I've already created a table which translates each date into a
corresponding week number and year. But how can I connect those tables
to solve this problem? I've already tried using a macro, but I failed
because you cannot use the SEEK command when working with linked
tables... is there any SQL statement? E.g. a JOIN?

I would be really grateful for any thoughts or ideas on that.

THANKS TO ALL FOR READING MY "NOVEL"!

Cheers,
Stephan Kuhnert

Nov 13 '05 #2

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

Similar topics

5
by: mACKnIFE | last post by:
Hi list! I've just finished reading the nice book: "Data Modeling and Relational Database Design Volume 1 - Student Guide", by Jan Speelpenning, Patrice Daux and Jeff Gallus, published by Oracle...
4
by: Daniel Ladd | last post by:
Hi, I have a problem with a conceptual graph in c++. I have a oist of structures like this: typedef struct Conceptual { char* Name;//Rappresenta la parola da mettere nel grafo Conceptual* Next;...
3
by: M Davidson | last post by:
Hello all, Thank you in advance for any guidance. (The standard form/subform won't work because my users will mess up and not enter a value for a category. I don't mean to speak ill of...
0
by: shirsoft | last post by:
I having some conceptual prob switching to c# I want to make a bitmap obj, and pass it to my func which will actually set its width, height and data ptr. But i am at loss as to how to do it ...
0
by: omyomyomy | last post by:
i have been set a task which i having problems with. i have to carry out the task of: The task is expected to be completed before the end of the second laboratory session. A full account on...
3
by: M_Mann | last post by:
Hello, Pls excuse if you consider this off-topic. Conceptual artists seek programmers here. We are authors of "Exhibition of Living Managers" (MANAGEX, www.managex.info) which is is global...
12
by: RSH | last post by:
I am still trying to grasp the use of real world Objects and how to conceptualize them using a business scenerio. What I have below is an outline that I am wrestling with trying to figure out a...
6
by: cppnow | last post by:
Hello. I have a strange conceptual problem I'm trying to think about. I would like to build a library that allows the user to do the following: 1) User defined types: The user defines their...
13
by: AliRezaGoogle | last post by:
Dear Members, I have a problem in the concepts of Monit.Enter and Monitor.Exit (Before everything I should say that I know how to solve this problem by using Monitor.Wait and I do not need a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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
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...

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.