これは設定と異なる場合がありますが、すべての予測データを永続的に保存するテーブルを作成します。この図では、私は、これらのフィールドでtblForecastを作成しました:私はそれ以降と日付を提供するために、2つのテキストボックスをプロジェクトを選択するために、コンボボックスでフォームを作成しました

とあなたが説明したようにレコードを作成するいくつかのVBAを実行するコマンドボタン。これらのコントロールの下には、tblForecastをRecordSource
とするサブフォームがあります。
ここ
がクリックイベントでの注釈付きのVBAコードです:これは、フォームが作成されたレコードを表示し、ユーザーがフィールドForecastData1とForecastData2に対して独自のデータを置くことを可能にするために使用されますそのコマンドボタン:
Private Sub cmdCreate_Click()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim newRecs As Integer
Dim i As Integer
' Open tblForecast so we can add new records to it
Set db = CurrentDb
Set rs = db.OpenRecordset("tblForecast")
' Find out how many records we need to add based on the number of months between
' the From and To dates supplied on the form
newRecs = DateDiff("m", Me.txtFromDate, Me.txtToDate)
' Initialise our counter for the loop
i = 1
' Start a loop that will create a new record for each of the months needed
Do While i <= newRecs
With rs
.AddNew
' Pre-poulate the ProjectID, ForecastMonth and ForecastYear fields with
' the relevant data
!ProjectID = Me.cboProject
!ForecastMonth = Month(DateAdd("m", i - 1, Me.txtFromDate))
!ForecastYear = Year(DateAdd("m", i - 1, Me.txtFromDate))
.Update
' Increment the counter before next loop iteration
i = i + 1
End With
Loop
' Requery subform to see the new records that have been added
Me.tblForecast_sub.Form.Requery
' Tidy-up memory
rs.Close
Set rs = Nothing
Set db = Nothing
End Sub
だから、あなたは、開始日と終了日とプロジェクトを提供する場合...

...VBAコードから供給された日付としてPROJECTID、ForecastMonthとForecastYearが事前移入 Toフィールド間の各月のレコードを作成します

:その後、コマンドボタンをクリックしてください適切なデータ。その後、ユーザーは残りのForecastData1とForecastData2フィールドを完了する必要があります。
Here's a linkをアクセスモックアップファイルに追加すると、必要に応じて詳細を見ることができます。
この質問は多少広すぎてまともな回答が得られない可能性があります。また、フォームを実装しようとしている場合は、まだフォームで何か試してみましたか?フォームにデータベース内の空白のエントリを作成し、単一のプロジェクトが複数のカレンダーの日付を持つことができるようにデータベースを設定するとします。おそらくダミーのデータを提供して、このデータの構造を見ることができます。 –
こんにちは、お返事ありがとうございます。私はなぜそれが多分広すぎるように出くわすのか分かります。特定の問題を含めるように質問を更新しました – user3279907
ありがとう、それは便利です。私はいくつかのアイデアを与えるかもしれない答えを提供しました。 –