473,468 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to count and insert into database by month?

3 New Member
hi..i'm newbie in db access..i have a big problem..i'm used db access and asp code in my system..hope someone can help me to fix this issue..
here i have two table..1) eachclick 2)month

1st (in table eachclick)

button :clicked : date : time
1 : 1 : 19 mac 2008 : 2:30pm
2 : 1 : 19 mac 2008 : 2:31pm
3 : 1 : 19 mac 2008 : 2:32pm
1 : 1 : 19 mac 2008 : 2:33pm
1 : 1 : 19 april 2008 : 9:00am

2nd(in table month)

button january feb mac april may june
1 : 0 : 0 : 0 : 0 : 0 : 0
2 : 0 : 0 : 0 : 0 : 0 : 0
3 : 0 : 0 : 0 : 0 : 0 : 0
That's the sample table that i've create..
i don't know how to count the clicked and insert it into the table month..
i want to know how much clicked in january,february and so on and separate the button like i draw in table month...
may someone help me to give the code..tq for your honest..
Mar 21 '08 #1
2 1178
PianoMan64
374 Recognized Expert Contributor
hi..i'm newbie in db access..i have a big problem..i'm used db access and asp code in my system..hope someone can help me to fix this issue..
here i have two table..1) eachclick 2)month

1st (in table eachclick)

button :clicked : date : time
1 : 1 : 19 mac 2008 : 2:30pm
2 : 1 : 19 mac 2008 : 2:31pm
3 : 1 : 19 mac 2008 : 2:32pm
1 : 1 : 19 mac 2008 : 2:33pm
1 : 1 : 19 april 2008 : 9:00am

2nd(in table month)

button january feb mac april may june
1 : 0 : 0 : 0 : 0 : 0 : 0
2 : 0 : 0 : 0 : 0 : 0 : 0
3 : 0 : 0 : 0 : 0 : 0 : 0
That's the sample table that i've create..
i don't know how to count the clicked and insert it into the table month..
i want to know how much clicked in january,february and so on and separate the button like i draw in table month...
may someone help me to give the code..tq for your honest..
To put it simply, you don't want to do that. That is not what is considered to be Good Practice when developing database structure.

If you have the first table, you can use MS Access to create a Cross-Tab Queery with the information that you have. You simply count by Year, Month and you'll get the result you seek.

If you need more help, let me know,

Joe P.
Mar 24 '08 #2
lyter
3 New Member
To put it simply, you don't want to do that. That is not what is considered to be Good Practice when developing database structure.

If you have the first table, you can use MS Access to create a Cross-Tab Queery with the information that you have. You simply count by Year, Month and you'll get the result you seek.

If you need more help, let me know,

Joe P.

tq for your suggestion..actually i don't know how to do that because i'm learn the MS Access myself..and i not expert as u..could u help me how to do that? i'm struggling to try anything that u suggest..please help me..
Mar 24 '08 #3

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

Similar topics

4
by: Spark | last post by:
Hi, Situation: Need a query to return number of ticket records by month of open in a log table where the ticket open record is older than 24 hours then the ticket pending or ticket closed...
4
by: MAB71 | last post by:
I'm running an ISP database in SQL 6.5 which has a table 'calls'. When the new month starts I create a new table with the same fields and move the data of previous month into that table and delete...
3
by: Dagpauk | last post by:
Assume the following table holding information about the planning date and execution date for an imaginary "objects" ObjectPlan ObjectID PlannedDate ExecutedDate 1 19.03.04 28.03.04...
20
by: none | last post by:
I have managed to get the below script *almost* working. However, it still has a problem calculating the number of months. The date I am trying to calculate from is Oct 15, 1994. With the correct...
8
by: nano2k | last post by:
Hi Shortly, I keep invoices in a table. Occasionally, someone will fire the execution of a stored procedure (SP) that performs several UPDATEs against (potentially) all invoices OLDER than a...
1
by: Vikas | last post by:
Hi all, I am working on a document control database where I have a table "tblControl" containing two columns "DocID" and "SchIssueDate". "DocID" is the key field with text format while...
1
by: preeti13 | last post by:
i have a store procedure i am trying to count the records but getting the probelm with this please if any one know about this help me my store procedure is like this CREATE proc...
3
by: assgar | last post by:
Hi I am having problem with my loping. I don't know if I have chosen the correct approach. GOAL: I need to insert into a table event types for a specific date range. The calendar the event...
1
by: lyter | last post by:
hi..i'm newbie in sql..i have a big problem..i'm used db access and asp code in my system..hope someone can help me to fix this issue.. here i have two table..1) eachclick 2)month 1st (in table...
12
by: petter | last post by:
Hi! I have two questions: one question that regards the COUNT-function, and one about how to display a month even if I don’t have any data for that month. I have an Access database where I want...
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,...
1
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: 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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.