Solved

Form to display editable records across the page

Posted on 2015-01-29
5
116 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

820 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