Add multiple records in a form with calendar type design.

%3CLINGO-SUB%20id%3D%22lingo-sub-2634319%22%20slang%3D%22en-US%22%3EAdd%20multiple%20records%20in%20a%20form%20with%20calendar%20type%20design.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2634319%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20and%20thank%20you%20for%20anyone%20who%20can%20assist%20me%20with%20this%20problem.%20I'm%20trying%20get%20a%20form%20that%20brings%20up%20data%20in%20a%20calendar%20type%20design.%20To%20record%20data%20based%20on%20what%20date%20they%20input%20on.%20the%20following%20is%20the%20design%20of%20the%20form.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AccessExample.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F302260i6686F089EC3E572B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AccessExample.jpg%22%20alt%3D%22AccessExample.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EUnder%20each%20date%20you%20would%20input%20how%20many%20minutes.%20The%20table%20Structure%20base%20is%20ID%2C%20Name%2C%20TimeValue%2C%20TimeDate.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Enot%20sure%20how%20to%20get%20the%20TimeDate%20and%20display%20Multiple%20TimeValues%20on%20one%20Form.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again%20for%20any%20assistance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2634319%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2635190%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20multiple%20records%20in%20a%20form%20with%20calendar%20type%20design.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2635190%22%20slang%3D%22en-US%22%3ENot%20quite%20sure%20what%20you%20are%20asking.%3CBR%20%2F%3EIs%20the%20form%20based%20on%20a%20crosstab%20query%3F%20If%20so%2C%20are%20you%20aware%20it%20will%20be%20read%20only.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2637495%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20multiple%20records%20in%20a%20form%20with%20calendar%20type%20design.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2637495%22%20slang%3D%22en-US%22%3E%3CP%3ENo.%20A%20crosstab%20query%20changes%20a%20normalised%20Access%20table%20into%20a%20spreadsheet%20type%20layout.%3C%2FP%3E%3CP%3ESee%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fmake-summary-data-easier-to-read-by-using-a-crosstab-query-8465b89c-2ff2-4cc8-ba60-2cd8484667e8%23%3A~%3Atext%3DCreate%2520a%2520Crosstab%2520Query%2520in%2520Access%25201%2520On%2CYou%2520can%2520enter%2520an%2520expression%2520in...%2520See%2520More.%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMake%20summary%20data%20easier%20to%20read%20by%20using%20a%20crosstab%20query%20-%20Access%20(microsoft.com)%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20query%20based%20on%20several%20tables%20may%20be%20editable.%20It%20depends%20on%20the%20query%20SQL.%3C%2FP%3E%3CP%3EPlease%20post%20the%20SQL%20for%20the%20form%20record%20source%20as%20I%20don't%20have%20enough%20info%20to%20give%20any%20advice.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2641551%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20multiple%20records%20in%20a%20form%20with%20calendar%20type%20design.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2641551%22%20slang%3D%22en-US%22%3ETo%20do%20this%20requires%20quite%20a%20bit%20of%20code%2C%20so%20step%20one%20is%20to%20be%20sure%20you%20are%20prepared%20for%20the%20work%20that%20will%20be%20required.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20a%2020%2B%20year%20career%20I%20only%20had%20to%20do%20something%20like%20this%20one%20time.%20It%20was%20a%20lot%20of%20work%2C%20but%20it%20can%20be%20done.%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20need%20a%20temp%20table%20with%20fields%20for%20each%20of%20the%20days%20(1%20through%2031)%20in%20a%20month.%20The%20form%20is%20bound%20to%20that%20temp%20table.%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20populate%20the%20temp%20table%20when%20the%20form%20opens%20by%20converting%20the%20values%20in%20the%20normalized%20table%20to%20those%20in%20the%20temp%20table.%20Then%2C%20when%20the%20user%20has%20entered%20whatever%20new%20data%20is%20needed%2C%20you%20have%20to%20run%20code%20to%20copy%20those%20values%20back%20into%20the%20source%2C%20normalized%20tables.%20A%20lot%20of%20work%2C%20but%20doable.%20If%20the%20interface%20design%20is%20critical%20enough%20to%20your%20business%20to%20justify%20that%2C%20you%20can%20do%20it.%20However%2C%20it's%20also%20worthwhile%20to%20look%20at%20a%20more%20conventional%2C%20less%20work-intense%2C%20interface.%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20amount%20of%20effort%20are%20you%20willing%20to%20invest%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2646986%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20multiple%20records%20in%20a%20form%20with%20calendar%20type%20design.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2646986%22%20slang%3D%22en-US%22%3EWow%20I%20think%20this%20might%20be%20what%20i%20have%20to%20do.%20Im%20willing%20to%20put%20in%20the%20work.%20Do%20you%20have%20any%20examples%20of%20this%20cause%20other%20than%20creating%20the%20temp%20table%20I%20will%20need%20some%20assistance%20in%20how%20it%20is%20done.%20What%20do%20you%20mean%20by%20more%20conventional%2C%20less%20work%20interface.%20If%20something%20like%20this%20would%20get%20me%20the%20same%20out%20come%20I%20would%20definitely%20be%20interested%20in%20those.%20Thanks%20for%20your%20assistance%20with%20this.%3C%2FLINGO-BODY%3E
Contributor

Hello and thank you for anyone who can assist me with this problem. I'm trying get a form that brings up data in a calendar type design. To record data based on what date they input on. the following is the design of the form. 

AccessExample.jpg

Under each date you would input how many minutes. The table Structure base is ID, Name, TimeValue, TimeDate.

 

not sure how to get the TimeDate and display Multiple TimeValues on one Form.

 

Thanks again for any assistance.

 

11 Replies
Not quite sure what you are asking.
Is the form based on a crosstab query? If so, are you aware it will be read only.
By crosstab query you mean a query that pulls data from multiple Tables? If so then yes it is using a crosstab query and no I wasn't aware it would make it read only. If that's the case I'm not sure what the solution will be. From the picture above each square would be a numerical value (Minutes) the DateValue would be the date the square is associated to . if you follow the column down 1 would be august 1st 2 would be august 2nd ..... Do you see any solution?

No. A crosstab query changes a normalised Access table into a spreadsheet type layout.

See Make summary data easier to read by using a crosstab query - Access (microsoft.com)

 

A query based on several tables may be editable. It depends on the query SQL.

Please post the SQL for the form record source as I don't have enough info to give any advice.

To do this requires quite a bit of code, so step one is to be sure you are prepared for the work that will be required.

In a 20+ year career I only had to do something like this one time. It was a lot of work, but it can be done.

You need a temp table with fields for each of the days (1 through 31) in a month. The form is bound to that temp table.

You populate the temp table when the form opens by converting the values in the normalized table to those in the temp table. Then, when the user has entered whatever new data is needed, you have to run code to copy those values back into the source, normalized tables. A lot of work, but doable. If the interface design is critical enough to your business to justify that, you can do it. However, it's also worthwhile to look at a more conventional, less work-intense, interface.

What amount of effort are you willing to invest?
Wow I think this might be what i have to do. Im willing to put in the work. Do you have any examples of this cause other than creating the temp table I will need some assistance in how it is done. What do you mean by more conventional, less work interface. If something like this would get me the same out come I would definitely be interested in those. Thanks for your assistance with this.
I'll go into my archives and see what I can find that might be helpful.
I'm sorry, I no longer have the data for the app I was thinking of so it's impossible to set it up as a demo. I'll see if I can create one, but it'll be quite simplistic.

@George Hepworth 

I also created several similar forms a few years ago and can vouch for the fact that it was a lot of work. One example was for viewing/editing student attendance data and another for calendar events in a school:

 

CalendarMonth.gif

The monthly calendar could also be viewed as a weekly and daily calendar in which time slots were included

 

CalendarWeek.gif

 

In each case, just as George described earlier, I created a crosstab query based on a normalised table. Next I made a 'temp table from the crosstab so the data could be edited on the form. Likewise, on closing the form, all the data was saved back to the original table and the 'temp table' was emptied.

 

I do still have these examples but they are part of a commercial app for schools and it would be far too lengthy a process to extricate.

 

However Peter Hibbs at Utter Access forum has been developing an Outlook style calendar for Access for many years and it is still freely available. It should certainly be useful to you and it may well be that you can adapt it for your own needs: https://www.utteraccess.com/topics/1969978.

For info, it is a very lengthy thread with over 370 posts.

 

@isladogs 

Thanks for pointing to Peter Hibb's calendar. I'd forgotten it.

Nice work on the attendance and events calendars.

 

I'm working on a simplified demo, a bit at a time. It might be ready to share soon.

@George Hepworth 

My demo "works" as is, but I surfaced a serious flaw during testing. The approach I took works satisfactorily if there is ONE event per day. However, it can't adequately handle multiple events on a single day. I'm not sure I want to put in any more time on it, as a matter of fact.

 

If the demos and downloads previously cited don't meet your needs, I'd say a traditional main form/subform design is in order. 

 

If I feel more ambitious later, I might tackle this again, but right now not so much.

Wow that calendar form looks amazing. What I am trying to create is a attendance database for our therapist. I think that calendar form is pointing me in the correct direction. I will try to take from it and make mine work. I will keep you updated.