M
mjones
You'll need to use a macro or (I'd prefer) VBA code in the AfterUpdate event
of the "master" GraduationDate (the one bound to tClass.GraduationDate) set
the other textbox. Guessing that tGraduateList is edited on a subform named
subGraduateList and tClass is on the mainform, the code would be something
like
Private Sub GraduationDate_AfterUpdate()
If IsNull(Me!subGraduateList.Form!GraduationDate) Then
Me!subGraduateList.Form!GraduationDate) = Me!GraduationDate
End If
End Sub
Of course you'll need to adjust the control names to your own.
--
John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see alsohttp://www.utteraccess.com
Hi John,
Good to hear from you again. Ah ha. Interesting. And no wonder I
couldn't figure it out - it needs VBA and although I'm looking forward
to it I haven't gotten to that book yet- should get the basics down
first.
It seems I need to get better at detailing fundamental information
when I post. I'll try to do better.
A couple of notes to be sure before I try your idea. There isn't a
subform. GraduationDate object is straight on the fGraduateList form
- the one to default from tClass.GraduateDate and update if needed.
The date can't change in tClass, which looks to be what you suggest,
or everyone in the class will have their grad dates changed. It only
changes for a student who misses a day and has a make up (grad date)
day later, thus having the date again in the tGraduateList because it
could be different that the standard tClass.GraduateDate.
The "master" GraduationDate (the one bound to tClass.GraduationDate),
is only shown on a form and can't be edited. The data is, as of yet,
only typed into the table.
GraduationDate in both tables is data type date/time Long Date.
When you guess tClass is on the main form (the only form), I'm
guessing you're looking to see if the fGraduateList record source can
find it. The record source for fGraduateList is currently set to
SELECT tGraduateList.* FROM tGraduateList;. This is the record source
we've be playing around trying to update.
Hopefully that clears up some assumptions (to us project managers -
risks) and we can figure this out.
Have a great day!
Michele