Solved

Allow users to create/edit a record in many table

Posted on 2012-03-15
2
247 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:dlogan7
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 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:dlogan7
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

708 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

16 Experts available now in Live!

Get 1:1 Help Now