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

Create a calendar-view

To Any People who kind in help,

Currently I am trying to create a Booking Database for my department (advertising). Is it possible to show the record in Calendar View?

My Table are as below:
AdvertisorTable ( Field:AdvertiserID, Company Name, Person In charge)
Order Table (Field:PressOrder ID,AdvertiserID, Ad Size, Rate,)
InsertionDateTable:(Field: Press Order ID, Ins Date For Newspaper A, Ins Date For Newspaper B, and Ins Date For Newspaper c)

Is it possible to create a calendar to show the Insertion Date of the Newspaper A,B & C and the Advertiser's Company Name?

Very thank you if anybody can help me to resolve this question as I has been searching this solution for 2months..

T.T
Jul 12 '13 #1
17 5177
Frinavale
9,735 Expert Mod 8TB
What technology are you using to implement your application?
Jul 12 '13 #2
Hi Frinavale,

Thank you for your reply!
I am using Ms Access 2010.

Is it possible to do it?
Jul 13 '13 #3
ADezii
8,834 Expert 8TB
As soon as this Thread gets moved to the Access Forum, I am sure that we can help you. In the mean time, are these the correct Table Relationships for the Database?
Expand|Select|Wrap|Line Numbers
  1. AdvertiserTable.[AdvertiserID]{1} ==> [Order Table].[AdvertiserID]{MANY}
  2.  
Expand|Select|Wrap|Line Numbers
  1. [Order Table].{PressOrderID]{1} ==> InsertionDateTable.[PressOrderID]{MANY}
Jul 15 '13 #4
Hi ADezii,

Thank you for your replied!:') (touch)

Yes, the relationship was linked as to your perception.

Henry
Jul 15 '13 #5
ADezii
8,834 Expert 8TB
Let me see what I can come up with. The Calendar Database was designed to Map a single Date Field or Date Range (To Date...From Date) to a Calendar Grid. Off hand, I do not see how three distinct Date Fields (Insertion Dates for Newspapers A, B, and C) per Record can be mapped in this manner. A Hybrid approach may be needed - be patient and I will get back to you.
Jul 15 '13 #6
ADezii
8,834 Expert 8TB
For now, I wasn't able to modify the Calendar Database so that it will display all three Newspaper Insertion Dates at the same time. What I was able to do, was to to Open the Calendar displaying Insertion Dates, Company Names, and Order IDs for Newspaper 'A' with the option to dynamically switch to Newspapers 'B' and 'C' while re-populating the Calendar with the new data. If you are interested I'll give you the specifics, but I must advise you that the Core Code for the Calendar DB can be a little intimidating. Let me know either way.
Jul 15 '13 #7
Hi Adezi,

Very thank you for ur help. I am ok with the calendar which showing 3 newspaper at the same time. i am a newbie for ms access. So i think the second option is not suiting me.......

Henry
Jul 15 '13 #8
zmbd
5,501 Expert Mod 4TB
OP
(...) InsertionDateTable:(Field: Press Order ID, Ins Date For Newspaper A, Ins Date For Newspaper B, and Ins Date For Newspaper c)
(...)
Rabbit, correct me if I'm wrong, and I may very well be, it appears that this table isn't normalized and a slight tweek to the structure should make the Calendar Database hummm happily.

There should be at least one more table

tbl_newspaper:
[newspaper_PK]
[newspaper_papername]
[[newspaper_otherdetail]

And rework InsertionDateTable (I'll slightly rename it here so as not to get it mixed with the OP version):
tbl_InsertionDate:
[InsertionDate_PK]
[InsertionDate_Date]
[InsertionDate_FK_PressOrder]
[InsertionDate_FK_NewsPaper]

Now one should be able to query against the [InsertionDate_Date] in tbl_InsertionDate to find all of the press order information and which paper the insertion happened - One field, which, if I followed correctly in ADezii's Post (#6) should work - no?

I think I may be missing something; however, until I do this to the OP DB table design, it doesn't make sense to me.
Jul 15 '13 #9
Rabbit
12,516 Expert Mod 8TB
@zmbd, you are correct, the data is not normalized and should not contain three different newspapers in one record.
Jul 15 '13 #10
ADezii
8,834 Expert 8TB
I now feel that the OP may be well over his head with this one hinting that Normalizing may not be an option at this time. On the other hand, understanding the Logic and Coding involved with the Access Calendar would be even more difficult. Not sure how to proceed from here.
Jul 15 '13 #11
ADezii
8,834 Expert 8TB
@zmbd & Rabbit:
I simplified matters for the OP by maintain a 3-Table structure but modifying InsertionDateTable in the following manner:
Expand|Select|Wrap|Line Numbers
  1. [InsertID]{PK}
  2. [PressOrderID]{FK to Order Table}
  3. [Insertion Date](DATE/TIME}
  4. [Newspaper]{TEXT 1}[A, B, or C]
  5.  
  6. NOTE: Unique Index on [Insertion Date] AND [Newspaper]
The SQL needed to create a Recordset in order to populate the Calendar now becomes:
Expand|Select|Wrap|Line Numbers
  1. strSQL = "SELECT AdvertisorTable.[Company Name], [Order Table].PressOrderID, " & _
  2.          "InsertionDateTable.[Insertion Date], InsertionDateTable.Newspaper " & _
  3.          "FROM (AdvertisorTable INNER JOIN [Order Table] ON AdvertisorTable.AdvertiserID = " & _
  4.          "[Order Table].AdvertiserID) INNER JOIN InsertionDateTable ON " & _
  5.          "[Order Table].PressOrderID = InsertionDateTable.PressOrderID ORDER BY " & _
  6.          "AdvertisorTable.[Company Name]"
Rather than rambling on, I'll Attach the Demo that I threw together that will display the Company Name and Newspaper designation (A, B, or C) on the Calendar with the actual Grid Date representing the Insertion Date.
Attached Files
File Type: zip Advertising.zip (76.9 KB, 252 views)
Jul 15 '13 #12
zmbd
5,501 Expert Mod 4TB
ADezii,
Wow, that {code is} something else! {I don't think I could have come up with it so easily!}

{As for the normalization,} IMHO, In the long run, it will be much better for OP to normalize the DB and would have made the calendar much easier to code.

Hener1988:
If you go to the insight articles there is one covering normalization (sorry, on a guest account tonight so I don't have my quick links). It is well worthy learning about as it will make your databases more efficient .
Jul 16 '13 #13
ADezii
8,834 Expert 8TB
In the long run, it will be much better for OP to normalize the DB and would have made the calendar much easier to code.
I could not agree with you more should the OP be minimally proficient with Database Structure and VBA Coding. My only reasoning is that the addition of a 4th Table to the overall structure would add to the overall complexity, but you are correct, of course, in your statement. Let's see exactly where this goes from here.

P.S. - What do you say, Rabbit?
Jul 16 '13 #14
zmbd
5,501 Expert Mod 4TB
ADezii,
Wow, that's something else!
Just re-read that and thought, that could be taken wrong! :(

My intent was to express how impressed I was by the solution you arrived at... frankly, I don't think I would have arrived there within a week or two!
Jul 16 '13 #15
Rabbit
12,516 Expert Mod 8TB
@ADezii, I think your new three table layout is fine since it normalizes the data. The fourth table is really only needed if they want to store additional newspaper data.
Jul 16 '13 #16
ADezii
8,834 Expert 8TB
@zmbd:The basic Access Calendar has been around for many years and was actually created by a friend of mine. Over the course of time it has gained much popularity, and with my friend's permission I sort of took it over and have adapted it to individual's specific needs. It was in a constant state of flux in that it continually was improved, modified, fine tuned, etc. Even Members of this Forum such as NeoPa and Mary have contributed to its evolution. It is at the point now where it essentially is a shell and can easily be modified for specific needs. I didn't want you to think that I simply 'whipped' this Calendar up on my own in a short time period - I am nowhere near that smart! (LOL).

P.S. - What you see in the Attached Demo is just part of the functionality that the Basic Access Calendar provides. Dbl-Clicking on any Date Grid (Text Box) would normally display a List Box at the bottom of the Screen (where the 3 Command Buttons are now). This List Box would contain expanded information relating to the Items within the Date selected.
Jul 16 '13 #17
ADezii
8,834 Expert 8TB
Thanks for your opinion Rabbit, it is highly valued.
Jul 16 '13 #18

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

Similar topics

1
by: Kevin Myers | last post by:
Hello, I'm an experienced application developer in some languages (including various SQL dialects), but have very little experience with MS Access or VBA, and am having trouble figuring out how...
2
by: David C | last post by:
I am looking for some kind of calendar view control that I can show hyperlinks to records in day cells. This is to be used for showing scheduled events and people can see events in a calendar view...
2
by: Joe Griffith | last post by:
I'm using a Win Forms Data Grid View control in unbound mode. When I add columns using the wizard the first item is the column name. Everything works fine. However, if you return to the...
0
by: Gian Paolo | last post by:
this is something really i can't find a reason. I have a form with a tabcontrol with tree pages, in the second page there is a Data GRid View. Plus i have a class. When i open the form i...
0
by: nanaalwi | last post by:
hi there, im doing a project right now to download a data from EEPROM of a camcorder. i used a 'data grid view' to display all the data downloaded from the camcorder. however, i have to save the...
2
by: Bob | last post by:
I've searched this group and have not found any posts since 2001, so I'm hoping that now there may be a better way. I have a need to generate a report that looks like a outlook monthly calendar...
3
by: Phil Stanton | last post by:
I have a button on a form which when pressed displays a google map of the address. Code is Private Sub Googlemap_Click() MakeURL ("") End Sub
1
by: Jackmac | last post by:
Hi there, Hopefully an easy one for someone. I'm writing a small app (Visual Studio 2008) which will take an existing access database we have and show it in a form I'm writing. The fields have...
8
by: obtrs | last post by:
show data of multiple tables? i have 3 tables i want to show the data from them to a page. table1 "trip" table2 "seat" table3 "user_information" show all the data of table one which is...
0
by: cadab | last post by:
I have a data grid view, i have specified several columns through the designer that i would like to show on the grid, i have mapped them to the datasource, this works fine, the problem is, my data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.