Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Allow users to create/edit a record in many table

Posted on 2012-03-15
2
Medium Priority
?
260 Views
Last Modified: 2012-08-13
I am re-asking a previously asked question after redesigning my database. I have requested the previous question be deleted. That question got really confusing...all because of my original database design. I have attached the pertinent portion of the new database. Hopefully, things are much simpler now.

This database is for users to forecast projected sales for certain products. The admin for the project will select which products they want users to forecast. This will create a record in tblForecastHeaders. Users will use a form having 2 subforms. They will select a product from a subform showing all records from tblForecastHeaders. The other subform will be used for the location to enter a value as a forecast for the selected product. The user may also come back and edit their forecasts.

Right now, I am creating a record for every user for every product. That just doesn't seem right. There will be many products that users don't want to create a forecast. How can I allow the user to create or edit a forecast without creating all of those records ahead of time.

Thanks, Dale
Forecast-demo.accdb
0
Comment
Question by:Dale Logan
2 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 37728661
So an Admin will decide which products are needed for forecasting, and then the user will select a Location, and all selected products related to that location will populate the leftside subform? And you then want the user to be able to selectively add a Forecast, based on their selections in the leftside subform?

The only viable way I could see to do this would be to add a button to allow the user to Create Forecast. The user would select a location, then a product, and then they would click a button to create a new Forecast for that location+product. Code could be used to determine if a forecast already exists, and if so then just show the user the current forecast.
0
 

Author Closing Comment

by:Dale Logan
ID: 37728805
Wow. Sometimes...no most of the time, I can make the most simple task to be difficult. A button to add a forecast will do the trick. That will cut down on the number of records by 70%. Thanks,.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

772 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