Solved

Form to display editable records across the page

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

803 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