Solved

Form to display editable records across the page

Posted on 2015-01-29
5
109 Views
Last Modified: 2015-01-30
I have a flat table with the following structure where I need to record events applicable to days - only one event record per day:
   EventDate     Date/Time
   Even               Long Text

What I need to do is create a form to display the records across the page by weekday and have them editable (hence I can't use a crosstab query). This form will actually end up as a subform displayed on top of another sub form that displays bookings records by day. That way I can see (and edit) my Events by week day and see the bookings that have been made by day below it.

I need help figuring out how to create the form to display editable records across the page. Suggestions welcome
0
Comment
Question by:Rob4077
  • 3
  • 2
5 Comments
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 40579525
I assume that you want to display continuous dates as your column headers, not just the dates entered in your table.

Will you have a [StartDate] on the main form to identify which days to show?

I generally do this using a cross-tab to display the data, and a separate data entry page to actually add or edit the data in the cells.  Then I simply requery or refresh the cross-tab after the changes are made.
0
 

Author Comment

by:Rob4077
ID: 40579576
Hi Dale,

Thanks for your suggestion. I started with that option then I decided to simply use an unbound form and use a little VBA to load and update the data when appropriate. That way I could allow changes without having to design another form.

It works fine except I can't get either of the following lines of code to run in the On Activate event of the parent form (frmWeekViewHolder). It works in all the other events (forward one week, back one week, go to a selected week, etc.) but won't work in the On Activate event. ReloadFields is a function that simply loads the variable values into the unbound form. Any ideas or do I need to raise another question?
Forms!frmWeekViewHolder!sfrmEventsSummary.Form.ReloadFields
    Forms("frmWeekViewHolder").Form("sfrmEventsSummary").Form.ReloadFields
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 40579633
Take a look at the sample I put together for you.
EditCrossTab.accdb
0
 

Author Comment

by:Rob4077
ID: 40579646
Brilliant. Easy to edit and easy to view. Thanks!!
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 40579662
glad to help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now