Textbox Information to Subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a subform that I need to contain information from a main form. The
sub form is linked by studentID, but I also need the tardy ID, TardyID, to
populate the subDhall field txtTardyID.

I tried the AfterUpdate of TardyID with this:

Me!subDhall.txtTardyID=Me!frmTardyAdd.TardyID
and
Me!subDhall.frmTardyAdd.txtTardyID=Me!frmTardyAdd.TardyID

to no avail.

Anyone have any tips?
 
Ripper said:
I have a subform that I need to contain information from a main form. The
sub form is linked by studentID, but I also need the tardy ID, TardyID, to
populate the subDhall field txtTardyID.

I tried the AfterUpdate of TardyID with this:

Me!subDhall.txtTardyID=Me!frmTardyAdd.TardyID
and
Me!subDhall.frmTardyAdd.txtTardyID=Me!frmTardyAdd.TardyID

to no avail.

Anyone have any tips?

Try this:

Me.subDhall.Form.txtTardyID = Me.TardyID

Carl Rapson
 
Never mind. I'm an idiot. I just set the default value control to = the
textbox and form where the information is housed.

<duh>!
 
Back
Top