Solved

Form to display editable records across the page

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

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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…

912 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

21 Experts available now in Live!

Get 1:1 Help Now