On the main form have an unbound textbox called DateEnter
On the Subform have the DateField called say DateEvent
Then you need this bit of code on the BeforeInsert Event on the subform.
(You might consider setting the DefautValue of DateEvent = Date() to set
today's date)
Option Compare Database
Option Explicit
Private Sub Form_BeforeInsert(Cancel As Integer)
If IsNull(DateEvent) Then
If Not IsDate(Me.Parent!DateEnter) Then
MsgBox "There is no date on the top of the form", vbInformation
Cancel = True
Exit Sub
Else
DateEvent = Me.Parent!DateEnter
End If
End If
End Sub
HTH
Phil
"ladybug via AccessMonster.com" <u21071@uwewrote in message
news:7717a95b5de31@uwe...
Quote:
>I have a table that has three fields. First is date, Second is a text
>field,
the third is a number.
>
I want to create a form where the date is entered at the top and then the
text field and number field is a continuous form below. I want to be able
to
enter in numerous entries under that date without having to enter the date
each time. Can someone help me through the steps in setting this up?
>
I had the date in the header and then the text and number field in the
detail
set to continuous. However, when I enter in the date and then enter the
other two fields when I hit tab it clears out the date.
>
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200708/1
>