Textbox Information to Subform

R

Ripper

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?
 
C

Carl Rapson

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
 
R

Ripper

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

<duh>!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top