Thanks again June!
I was able to do this on a button click:
Code:
Private Sub Command33_Click()
If Me.NewRecord Then
DoCmd.RunCommand acCmdSaveRecord
Dim x As Double
x = 0.5
While x <= 25
CurrentDb.Execute "INSERT INTO [tbl_LineSurveyData]([LineSurveyID], [TransectPoint]) " & _
"VALUES (" & [Forms]![frm_LineSurvey]![LineSurveyID] & "," & x & ")", dbFailOnError
x = x + 0.5
Wend
'frm_LineSurveyData SubForm.Requery
Me.frm_LineSurveyData_subform.Requery
End If
End Sub
But might change it to open another form like you suggested because it isn't very appealing having the subform partially there.
Thanks again for all the help! Does Me.ID (in your code) directly refer to LineSurveyID in the parent form somehow? Or is it acceptable to leave it [Forms]!...![LineSurveyID]?